Microsoft.UI.Xaml.Shapes Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines basic shapes that are intended for decorative rendering or for compositing non-interactive parts of controls.
Classes
Ellipse |
Draws an ellipse with a given Height and Width specified in device-independent pixel (DIP). |
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 Move and draw commands syntax, 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 with a given Height and Width specified in device-independent pixel (DIP). |
Shape |
Provides a base class for shape elements, such as Ellipse, Polygon, and Rectangle. |
Examples
Tip
For more info, design guidance, and code examples, see Draw shapes.
The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub