<Window x:Class="ScaleTransform.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ScaleTransform" Height="350" Width="525">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="237*" />
			<RowDefinition Height="159*" />
		</Grid.RowDefinitions>

		<TextBlock Text="ScaleTransform" FontSize="26" Foreground="CadetBlue" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="154,84,167,0" Height="41" Width="182">
				<TextBlock.RenderTransform>
				<ScaleTransform ScaleX="{Binding ElementName=slider1, Path=Value}" ScaleY="{Binding ElementName=slider2, Path=Value}" CenterX="{Binding ElementName=slider3, Path=Value}" CenterY="{Binding ElementName=slider4, Path=Value}" />
			</TextBlock.RenderTransform>
		</TextBlock>


		<Slider Margin="29,0,148,96" Name="slider1" Maximum="8" Grid.Row="1" Height="23" VerticalAlignment="Bottom" />
		<Slider Height="23" Margin="29,0,148,65" Name="slider2" VerticalAlignment="Bottom" Grid.Row="1" Maximum="8" />
		<Slider Height="23" Margin="29,0,148,36" Name="slider3" VerticalAlignment="Bottom" Grid.Row="1" Maximum="89" />
		<Slider Height="23" Margin="29,0,148,7" Name="slider4" VerticalAlignment="Bottom" Grid.Row="1" Maximum="40" />

		<TextBlock Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,12,96" Name="textBlock1" Text="{Binding ElementName=slider1, Path=Value}" Height="25" VerticalAlignment="Bottom" />
		<TextBlock HorizontalAlignment="Right" Margin="0,0,12,65" Name="textBlock2" Text="{Binding ElementName=slider2, Path=Value}" Grid.Row="1" Height="25" VerticalAlignment="Bottom" />
		<TextBlock Margin="0,0,12,36" Name="textBlock3" Text="{Binding ElementName=slider3, Path=Value}" Grid.Row="1" HorizontalAlignment="Right" Width="6" Height="25" VerticalAlignment="Bottom" />
		<TextBlock Height="25" HorizontalAlignment="Right" Margin="0,0,12,12" Name="textBlock4" Text="{Binding ElementName=slider4, Path=Value}" VerticalAlignment="Bottom" Grid.Row="1" />
		<Ellipse Height="7" HorizontalAlignment="Left" Margin="154,84,0,0" Name="ellipse1" Stroke="Red" VerticalAlignment="Top" Width="7" Fill="Red" Opacity="0.9" AllowDrop="True" >
			<Ellipse.RenderTransform>
				<TranslateTransform X="{Binding ElementName=slider3, Path=Value}" Y="{Binding ElementName=slider4, Path=Value}" />
			</Ellipse.RenderTransform>
		</Ellipse>
	</Grid>
</Window>
