Windows.UI.Xaml.Shapes Namespace

Defines basic shapes that are intended for decorative rendering or for compositing non-interactive parts of controls.

Equivalent WinUI namespace: Microsoft.UI.Xaml.Shapes.

Classes

Ellipse

Draws an ellipse with a given Height and Width specified in device-independent pixel (DIP).

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Ellipse.

Line

Draws a straight line between two points.

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Line.

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.

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Path.

Polygon

Draws a polygon, which is a connected series of lines that form a closed shape.

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Polygon.

Polyline

Draws a series of connected straight lines.

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Polyline.

Rectangle

Draws a rectangle with a given Height and Width specified in device-independent pixel (DIP).

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Rectangle.

Shape

Provides a base class for shape elements, such as Ellipse, Polygon, and Rectangle.

Equivalent WinUI class: Microsoft.UI.Xaml.Shapes.Shape.