Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 2.26 KB

File metadata and controls

46 lines (28 loc) · 2.26 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Media.PathFigure
winrt class

Microsoft.UI.Xaml.Media.PathFigure

-description

Represents a subsection of a geometry, a single connected series of two-dimensional geometric segments.

-xaml-syntax

<PathFigure .../>
-or-
<PathFigure ...>
  oneOrMorePathSegments
</PathFigure

-remarks

PathFigureCollection is a strongly typed collection for PathFigure items. PathFigureCollection is the type used by the PathGeometry.Figures property. In XAML, specify one or more PathFigure elements for this property.

This class is relevant for setting the vector data for either a Path or a PathIcon.

Rather than creating an instance or an object element, you can also define segments and a single PathFigure as part of a vector within the string for a Move and draw commands syntax.

-examples

This example creates a simple PathGeometry made up of a single PathFigure with a LineSegment and displays it using a Path element. The PathFigure object's StartPoint is set to (10,20) and a LineSegment is defined with an end point of (100,130).

[!code-xamlGeometryOvw5]

[!code-xamlGeometryOvw6]

-see-also

DependencyObject, PathGeometry, PathSegment, PathFigureCollection, XAML vector-based drawing sample, Draw shapes, Move and draw commands syntax