C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
ScaleTransform: This is the first element within the TransformGroup element. It scales (makes bigger or smaller) the X and Y dimensions.
SkewTransform: Skewing an element causes it to lose its original shape. It distorts the element. We set AngleX to 30.
RotateTransform: This rotates the element. We specify a 35-degree rotation of the Button control.
TranslateTransform: This changes the location of the control. We move it 50 pixels to the right (X) and 80 pixels downward (Y).
Example markup: XAML
<Window x:Class="WpfApplication24.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Button Content="Example"
HorizontalAlignment="Left"
Margin="0"
VerticalAlignment="Top"
Width="75"
Background="Salmon"
Foreground="White"
RenderTransformOrigin="0.5,0.5">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="2" ScaleY="2"/>
<SkewTransform AngleX="30" AngleY="0"/>
<RotateTransform Angle="35"/>
<TranslateTransform X="50" Y="80"/>
</TransformGroup>
</Button.RenderTransform>
</Button>
</Grid>
</Window>