Shalvin Interests

Tuesday, May 3, 2011

WPF, Silverlight Transforms

<Grid x:Name="LayoutRoot" Background="White">
<Button Content="Button" Height="34" HorizontalAlignment="Left" Margin="56,36,0,0" Name="button1" VerticalAlignment="Top" Width="100">
    <Button.RenderTransform>
        <SkewTransform AngleX="25"/>
    </Button.RenderTransform>
</Button>
    
<Button Content="Shalvin" Height="41" HorizontalAlignment="Left" Margin="235,30,0,0" Name="button2" VerticalAlignment="Top" Width="108">
    <Button.RenderTransform>
        <RotateTransform Angle="45"/>
    </Button.RenderTransform>
</Button>
</Grid>

No comments:

Post a Comment