Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.10 KB | None | 0 0
  1. <Window x:Class="RotationsAndScaling.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="MainWindow" Height="350" Width="525">
  5.     <Grid>
  6.         <Grid.RowDefinitions>
  7.             <RowDefinition Height="*"/>
  8.             <RowDefinition Height="Auto"/>
  9.             <RowDefinition Height="Auto"/>
  10.         </Grid.RowDefinitions>
  11.         <Image Source="https://www.google.com/images/srpr/logo4w.png" Width="200" Height="200">
  12.             <Image.LayoutTransform>
  13.                 <TransformGroup>
  14.                     <RotateTransform Angle="{Binding Value, ElementName=Rotator}"/>
  15.                     <ScaleTransform ScaleX="{Binding Value, ElementName=Scaler}"
  16.                                    ScaleY="{Binding Value, ElementName=Scaler}"/>
  17.                 </TransformGroup>
  18.             </Image.LayoutTransform>
  19.         </Image>
  20.         <Slider x:Name="Rotator" Maximum="360" Grid.Row="1"/>
  21.         <Slider x:Name="Scaler" Minimum="0.5" Value="1" Maximum="2" Grid.Row="2"/>
  22.     </Grid>
  23. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement