Questions tagged [rendertransform]
94 questions
36
votes
1 answer
Let image ManipulationMode capture pointer
In my app, a user can select an Image and drag it onto a Grid, to play with it. I do this by handling the PointerEntered event of the Grid. Here I detect if the user had an image selected and if the user is holding the mouse button.
Now I want to…

vrwim
- 13,020
- 13
- 63
- 118
11
votes
2 answers
Performance impact of applying either LayoutTransform vs RenderTransform?
I have had dealt with both LayoutTransform and RenderTransform and I know that each one is suited for a specific scenario which I had found a use for in previous projects.
Yet, from a performance perspective and while using a WPF profiling tool, for…

Tarek Khalil
- 405
- 4
- 13
9
votes
2 answers
Applying animated ScaleTransform in code problem
I am trying to find out why the code below does not seem to work. It does not give an error - it simply doesn't scale. It actually does seem to work if I change it as to my second code sample.
Anyone got any idea?
Thanks
public static void…

Marcel
- 2,148
- 6
- 31
- 48
8
votes
1 answer
Modify ZIndex of an Items in an ItemsControl
Here is the code of my ItemsControl that zooms on items when the mouse goes over.
I don't manage to increase the ZIndex of the current zoomed item to put it over the others.
…

Nicolas
- 6,289
- 4
- 36
- 51
6
votes
2 answers
How to prevent text to pixelize when I use RenderTransform?
When I use RenderTransform property and scale up a RichTextBox I get magnified text which is pixelized (square text edges).
How I can prevent this?
EDIT:
I have TextOptions.TextFormattingMode="Display" - when I remove this option everything is…

Alfa07
- 3,314
- 3
- 26
- 39
4
votes
2 answers
WPF: Get position of child UIElement within its parent. Ignore RenderTransform if any
Lets say I have this XAML code:
I my code behind I want to find out what are the coordinates…

Rasto
- 17,204
- 47
- 154
- 245
4
votes
1 answer
Changing the angle of a UIElement
I have this code:
RotateTransform transform = myImage.RenderTransform as RotateTransform;
transform.Angle = 25.0;
myImage.RenderTransform = transform;
Which sets the Angle of my Image element.. It works, however it doesn't move much as I…

KTOV
- 559
- 3
- 14
- 39
4
votes
1 answer
Default RenderTransform Converter syntax
I have a canvas with a RenderTransform applied like so:

aalex675
- 421
- 1
- 7
- 15
3
votes
0 answers
Apply RenderTransform to an EllipseGeometry
I'm looking to apply the contents of a RenderTransform to the physical properties of an EllipseGeometry, meaning that the Center/RadiusX/RadiusY properties of the EllipseGeometry are changed by the application of the transform. My reason for doing…

Craig
- 564
- 1
- 5
- 20
3
votes
3 answers
UWP grid rowheight not updating after scale transform of content
I have a control which contains 2 rows (header and content).
The content has a ScaleY transform on it when the pointer enters or exists, but it seems the row which has height Auto does not collapse the height when the content is scaled to…

Geert
- 71
- 4
3
votes
1 answer
C# WPF How to change RenderTransformOrigin but keep location?
I would like to know how to change RenderTransformOrigin of an element without changing its location. I've noticed that changing the RenderTransformOrigin will affect the element location.
How can I calculate the X and Y Value between the element…

KingSora
- 39
- 1
- 6
3
votes
1 answer
2
votes
1 answer
How do you determine the actual size on screen?
In a wpf control with zoom functionality I calculate from the MouseWheelEventArgs how to scale the drawing canvas to implement the zoom effect.
Point mouse = e.GetPosition(myCanvas);
Matrix m = myCanvas.RenderTransform.Value;
if (e.Delta > 0)
{
…

Gerard
- 13,023
- 14
- 72
- 125
2
votes
3 answers
WPF Transformations -- Rotating and switching width/height?
Basically, I have a FooControl (I did not set the Height/Width explicitly) added to a Grid.

michael
- 14,844
- 28
- 89
- 177
2
votes
0 answers
Wpf Width, ActualWidth, and RenderSize same result
I am having trouble when trying to obtain the actual width of a transformed ( rotated ) element in WPF.
I have a rectangle containing an image, in a Canvas. When I rotate the rectangle, I would like to get the rendered width to center it in my…

SetsunaDilandau
- 61
- 6