FillRule Property (PathGeometry)

Gets or sets a value that determines how the intersecting areas (PathFigures) contained in this PathGeometry are combined.

XAML
<object FillRule="FillRule" .../>
Scripting
value = object.FillRule
object.FillRule = value

Property Value

FillRule

A value of the FillRule enumeration.

This property is read/write. The default value is EvenOdd.

Remarks

The fill area is determined by applying the specified rule to the entire PathGeometry. To give the fill a different appearance, you set a Fill value on the parent Path of the PathGeometry.

The value of IsClosed on a PathFigure within the PathGeometry does not affect the calculation of the fill area, it only affects whether that segment is drawn; the fill area is evaluated as if the first and last segments were connected.

Applies To

PathGeometry

See Also

Silverlight Geometries Overview