SkewTransform of Image in WPF

SkewTransform of Image in WPF



The Following Code Snippet Produce when user move the slider Image will be Skew of X axis



This is Layout Transformation so any controls in this layout automatically




< !-- Define Stakc Panel-- >
< StackPanel >
< StackPanel >
< StackPanel.LayoutTransform >
< !-- Binding Slider values into Angle of X axis-- >
< !-- define SkewTransformation -- >
< SkewTransform AngleX="{Binding ElementName=Slider1,Path=Value}" AngleY="30" >< /SkewTransform >
< /StackPanel.LayoutTransform >
< !-- define button -- >
< Button Width="100" Height="100" Content="Show me" FontSize="{Binding ElementName=Slider1,Path=Value}" >< /Button >
< !-- define a Image-- >
< Image Source="images.jpg" Width="100" Height="100" >< /Image >
< /StackPanel >
< !-- define a slider which values can be bind the Skewtransformation Angle properyt -- >
< Slider Minimum="0" Maximum="360" x:Name="Slider1" IsHitTestVisible="True" >< /Slider >
< /StackPanel >


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: