<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="230" Width="500"> <Canvas Margin="10"> <Canvas.Resources> <GeometryGroup x:Key="Clown" FillRule="Nonzero"> <RectangleGeometry Rect="30,120 20,10"/> </GeometryGroup> </Canvas.Resources> <Path Canvas.Left="170" Canvas.Top="10" Data="{StaticResource Clown}" Stroke="Black" StrokeThickness="4" Fill="Wheat"> <Path.BitmapEffect> <DropShadowBitmapEffect Color="Green" Direction="30" Noise="1" ShadowDepth="20" Softness="3" /> </Path.BitmapEffect> </Path> </Canvas> </Window>