PathGeometry.Figures Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the collection of PathFigure objects that describe the contents of a path.
Namespace: System.Windows.Media
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Syntax
Public Property Figures As PathFigureCollection
public PathFigureCollection Figures { get; set; }
<PathGeometry>
<PathGeometry.Figures>
oneOrMoreFigures
</PathGeometry.Figures>
</PathGeometry>
<PathGeometry Figures="moveAndDrawCommands"/>
XAML Values
moveAndDrawCommands
One or more move and draw commands.oneOrMoreFigures
System.Windows.Media..::.PathFigureOne or more PathFigure objects.
Property Value
Type: System.Windows.Media..::.PathFigureCollection
A collection of PathFigure objects that describe the contents of a path. Each individual PathFigure describes a shape.
Remarks
Dependency property identifier field: FiguresProperty
The XAML syntax for Figures is an example of an implicit collection syntax, where you can omit the PathFigureCollection object element, as well as the PathGeometry.Figures property element. Instead, you generally include one or more PathFigure object elements as child elements of a PathGeometry. For more information about XAML implicit collection syntax, see XAML for Windows Phone 8.
Note
Explicitly including a PathFigureCollection object element is permissible XAML syntax, and it might be useful if you intend to name the collection in XAML and manipulate its contents through script later. Including the PathGeometry.Figures property element might also be useful for markup clarity, because of the nested Figures and Segments collections found in a typical complex PathGeometry.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone