View difference between Paste ID: hTTMZ6GN and sQi3fU4s
SHOW: | | - or go back to the newest paste.
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">
11+
        <Image Source="https://www.google.com/images/srpr/logo4w.png" Width="200" Height="200"
12-
            <Image.LayoutTransform>
12+
               RenderTransformOrigin="0.5, 0.5">
13
            <Image.RenderTransform>
14
                <TransformGroup>
15
                    <RotateTransform Angle="{Binding Value, ElementName=Rotator}"/>
16
                    <ScaleTransform ScaleX="{Binding Value, ElementName=Scaler}"
17
                                    ScaleY="{Binding Value, ElementName=Scaler}"/>
18-
            </Image.LayoutTransform>
18+
19
            </Image.RenderTransform>
20
        </Image>
21
        <Slider x:Name="Rotator" Maximum="360" Grid.Row="1"/>
22
        <Slider x:Name="Scaler" Minimum="0.5" Value="1" Maximum="2" Grid.Row="2"/>
23
    </Grid>
24
</Window>