Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="RotationsAndScaling.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>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Image Source="https://www.google.com/images/srpr/logo4w.png" Width="200" Height="200"
- RenderTransformOrigin="0.5, 0.5">
- <Image.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="{Binding Value, ElementName=Rotator}"/>
- <ScaleTransform ScaleX="{Binding Value, ElementName=Scaler}"
- ScaleY="{Binding Value, ElementName=Scaler}"/>
- </TransformGroup>
- </Image.RenderTransform>
- </Image>
- <Slider x:Name="Rotator" Maximum="360" Grid.Row="1"/>
- <Slider x:Name="Scaler" Minimum="0.5" Value="1" Maximum="2" Grid.Row="2"/>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement