Figures Property

Gets or sets the collection of PathFigure objects that describe the path's contents.

XAML
<PathGeometry>
  oneOrMorePathFigures
</PathGeometry>
Scripting
value = object.Figures
object.Figures = value

XAML Values

oneOrMorePathFigures One or more PathFigure object elements.

Property Value

PathFigureCollection

A collection of PathFigure objects that describe the path's contents. Each individual PathFigure describes a shape.

This property is read/write. The default value is an empty collection.

Remarks

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 Syntax Overview. (Explicitly including a PathFigureCollection object element is permissible XAML syntax, and 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 Object.)

Applies To

PathGeometry

See Also

Silverlight Geometries Overview
Path Markup Syntax
PathGeometry