System.Windows.Shapes Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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.
Classes
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. |