<Window x:Class="Workspace.DockExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Workspace" Width="640" Height="480">
<Path Stretch="Uniform" Margin="15,0,0,0">
<Path.Data>
<CombinedGeometry GeometryCombineMode="Union">
<CombinedGeometry.Geometry1>
<RectangleGeometry Rect="50,70 100 100" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry Center="100,70" RadiusX="35" RadiusY="40"/>
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
<Path.Fill>
<DrawingBrush>
<DrawingBrush.Drawing>
<ImageDrawing ImageSource="c:\image.JPG">
<ImageDrawing.Rect>
<Rect X="100" Y="100" Width="50" Height="50" />
</ImageDrawing.Rect>
</ImageDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>
</Path.Fill>
</Path>
</Window>
|