Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Transform Path

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="300" Width="300">     <UniformGrid Columns="3" Rows="4">         <UniformGrid.Resources>             <GeometryGroup x:Key="Clown">                 <RectangleGeometry Rect="130,120 210,110"/>             </GeometryGroup>         </UniformGrid.Resources>         <Path HorizontalAlignment="Center" VerticalAlignment="Center"               Data="{StaticResource Clown}" Stroke="Blue" StrokeThickness="4">             <Path.LayoutTransform>                 <ScaleTransform ScaleX="0.5" ScaleY="0.45" />             </Path.LayoutTransform>         </Path>             </UniformGrid> </Window>