The PathGeometry objects are used to draw lines, curves, arcs, and complex shapes. WPF provides two classes to describe the geometric paths using the mini language Path Markup Syntax.
You can learn more about it here:
http://bit.ly/path-markup-syntax
If you want to draw simple shapes, you can use the EllipseGeometry, LineGeometry, and RectangleGeometry objects. Composite geometries are created by GeometryGroup and to create combine geometries, use the CombineGeometry.
Let's take the following example to demonstrate a complex path geometry using a PathSegmentCollection of three segments:
<Path Stroke="DarkBlue" StrokeThickness="5"> <Path.Data> <PathGeometry> <PathGeometry.Figures> <PathFigureCollection> <PathFigure StartPoint="10,100"> <PathFigure.Segments> <PathSegmentCollection...