| title | LayoutTransformControl | |
|---|---|---|
| author | odonno | |
| description | The LayoutTransformControl is a control that supports transformations on FrameworkElement as if applied by LayoutTransform. | |
| keywords | LayoutTransformControl, Control, Layout, RenderTransform, RotateTransform, ScaleTransform, SkewTransform, Transform | |
| dev_langs |
|
|
| category | Controls | |
| subcategory | Layout | |
| discussion-id | 0 | |
| issue-id | 0 | |
| icon | Assets/LayoutTransformControl.png |
The LayoutTransformControl is a control that applies Matrix transformations on any FrameworkElement of your application.
The transformations that can be applied are one of the following:
[!Sample LayoutTransformControlSample]
<controls:LayoutTransformControl Background="Black"
HorizontalAlignment="Center"
VerticalAlignment="Center"
RenderTransformOrigin="0.5,0.5">
<controls:LayoutTransformControl.Transform>
<RotateTransform Angle="90" />
</controls:LayoutTransformControl.Transform>
<Border HorizontalAlignment="Center"
VerticalAlignment="Center"
BorderBrush="Red"
BorderThickness="5">
<Grid>
<TextBlock Padding="10" Foreground="White" Text="This is a test message." />
</Grid>
</Border>
</controls:LayoutTransformControl>