Questions tagged [layouttransform]
30 questions
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
1 answer
Translation of Canvas child not working when setting its LayoutTransform to a TranslateTransform or MatrixTransform
I have a simple application consisting of a Window containing a Canvas (rootCanvas). I am trying to add another Canvas (test) to this and apply different Transforms to the child canvas's LayoutTransform. This is all being done programmatically…

Phil Vigus
- 203
- 2
- 5
3
votes
5 answers
Find the applied ScaleTransform on a Control or UIElement?
I have a control sitting somewhere in my Window. At the root of this Window is a grid named MainGrid. I have a ScaleTransform applied on MainGrid's LayoutTransform that I use to zoom in on all the contents of my Window when the window's size grows.…

JacobJ
- 3,677
- 3
- 28
- 32
2
votes
1 answer
WP7: LayoutTransform a ListBoxItem
Here's my XAML:
In this code-behind (below), I am attempting to animate a delete action. When the item is selected I delete…

Jerry Nixon
- 31,313
- 14
- 117
- 233
2
votes
3 answers
wpf textblock text is not clear when using layouttransform
I am using TextBlock control. Text in the TextBlock is clearly displayed with 0 degree rotation.
But if i rotated the control to 90 degree using LayoutTransform, text is not clear. some blurry display.
Is there anyother way to rotate the text…

Lakshmanan
- 21
- 3
2
votes
1 answer
Parts of image missing when using ScaleTransform with LayoutTransformer and Scrollviewer on Windows Phone 7
I am trying to have a scaled image in a ScrollViewer in my Windows Phone 7 application. On the application page I define the controls like this:

gyurisc
- 11,234
- 16
- 68
- 102
2
votes
1 answer
Template binding to ScaleTransform not work in Custom Control
I created simple custom control which derive from Control.
This control has 2 DP which I bind in xaml on ScaleTransform.
Code behind.
public class MyControl : Control
{
public static readonly DependencyProperty ScaleXProperty =…

jose
- 63
- 4
1
vote
3 answers
LayoutTransform animation on ScaleX and ScaleY is breaking binding with them
I have a custom class say 'MyCanvas' derived from wpf Canvas class. MyCanvas has a Dependency Property 'Scale' which specify the scale transform for the canvas. Now when the value of Scale changes I want to animate the transform from old value to…

Jai
- 11
- 1
- 4
1
vote
2 answers
Why doesn't the Row Height of a WPF Grid resize to the Height of its content?
I have a Grid similar to this:
…

Bizhan
- 16,157
- 9
- 63
- 101
1
vote
0 answers
Auto-Scale WPF TextBox/RichTextBox content to fit available space
I have the following problem:
I want to setup a RichTextBox that automatically can resize the content inside to fit maximum of the available space while not change the layout of the content (e.g. Font sizes, Indent, etc.).
I saw already many…

Patrick
- 33
- 4
1
vote
1 answer
Flip a UIElement but preserve text inside from flipping
I think the title is pretty straightforward. I'm using some custom controls. I want to flip the tab header of a custom tab control. I tried a layout transform (ScaleTransform X = -1) to flip horizontally the tab header. But obviously I want the text…

muku
- 238
- 1
- 7
- 20
1
vote
1 answer
WPF - Confusing DataTrigger/DoubleAnimation behaviour
I'm trying to animate the ScaleY property of a LayoutTransform based on a DataTrigger bound to a boolean on my ViewModel class. The animation happens when the value is first seen to be false by the DataTrigger (when the application first starts)…

EightyOne Unite
- 11,665
- 14
- 79
- 105
1
vote
1 answer
Unscaled Controls in scaled parents
I have a WPF UserControl which acts like a Viewport (I call it "viewport" in the following context). This viewport can zoom and pan its content (I think the zooming uses either the Layout- or RenderTransform to zoom the content). Basically the…

Timo
- 9,269
- 2
- 28
- 58
1
vote
1 answer
Exception animating a scale layout transform in WPF
I have create a storyboard in C# to animation a scale transform on a canvas. The scale transform is a layout transform. Here is my C# code for the animation:
Storyboard Configuring = new Storyboard();
if (NexusRoot != null)
{
var current =…

Levi
- 41
- 1
- 4
1
vote
2 answers
RotateTransform shifts my image as well as rotating it
Ok, So I have an Image object that I want to rotate around its upper left corner. I setup a RotateTransform of 'X' degrees. My Image has the margin set to (400,400,0,0). This centers it on the canvas.
The problem is that when I apply different…

Curtis
- 5,794
- 8
- 50
- 77