.NET Framework Class Library for Silverlight
PathGeometry..::.Figures Property

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public Property Figures As PathFigureCollection
    Get
    Set
Visual Basic (Usage)
Dim instance As PathGeometry
Dim value As PathFigureCollection

value = instance.Figures

instance.Figures = value
C#
public PathFigureCollection Figures { get; set; }
XAML Property Element Usage
<PathGeometry>
  <PathGeometry.Figures>
    oneOrMoreFigures
  </PathGeometry.Figures>
</PathGeometry>
XAML Attribute Usage
<PathGeometry Figures="moveAndDrawCommands"/>

XAML Values

moveAndDrawCommands

One or more move and draw commands. See Path Markup Syntax.

oneOrMoreFigures

System.Windows.Media..::.PathFigure

One or more PathFigure objects.

Property Value

Type: System.Windows.Media..::.PathFigureCollection
A collection of PathFigure objects that describe the path's contents. 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 Overview. (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.)

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

Tags :


Community Content

LukeSkywalker
Doesn't work in Silverlight 2
<PathGeometry Figures="M 286, xxxx....." />

The syntax above does not work in SL2. However <Path Data="M 286, xxxx......" /> does work, but this isn't much good if you're trying to create a clip region in the shape of your company logo which requires a class derived from Geometry.

STOP PRESS - The following XAML does work:

<Rectangle Clip="M 286, xxxx......" [...] />

Credit to:

http://blogs.vertigo.com/personal/chris/Blog/archive/2008/12/04/pathgeometry-figures-property-xaml-attribute-syntax-in-silverlight.aspx
Tags : bug gotcha

Page view tracker