System.Windows.Shapes Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Provides access to a library of basic shapes that can be used in Extensible Application Markup Language (XAML) or code. Also includes the Path class, which can load path data to describe a compound geometry either through an object model or an inline format.


Class Description
Ellipse Draws an ellipse.
Line Draws a straight line between two points.
Path Draws a series of connected lines and curves. The line and curve dimensions are declared through the Data property, and can be specified either with a Path-specific mini-language, or with an object model.
Polygon Draws a polygon, which is a connected series of lines that form a closed shape.
Polyline Draws a series of connected straight lines.
Rectangle Draws a rectangle shape, which can have a stroke and a fill.
Shape Provides a base class for shape elements, such as Ellipse, Polygon, and Rectangle.