Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Render Tranform

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="350" Width="400">         <StackPanel Grid.Row="1" Grid.Column="1" >             <TextBlock HorizontalAlignment="Center" Margin="5">                 Render Tranform             </TextBlock>             <Button Margin="5" Width="100">Top Button</Button>             <Button Content="Middle Button" Margin="5"                      RenderTransformOrigin="0.5, 0.5" Width="100">                 <Button.RenderTransform>                     <RotateTransform Angle="30" />                 </Button.RenderTransform>             </Button>             <Button Margin="5" Width="100">Bottom Button</Button>         </StackPanel>     </Grid> </Window>