<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="450">
<Canvas>
<Canvas.Resources>
<GeometryGroup x:Key="Clown" FillRule="Nonzero">
<RectangleGeometry Rect="30,120 20,10"/>
</GeometryGroup>
</Canvas.Resources>
<Path Canvas.Left="20" Canvas.Top="110" Data="{StaticResource Clown}" Stroke="Black" StrokeThickness="4"/>
</Canvas>
</Window>
|