FillRule Property (PathGeometry)
<object FillRule="FillRule" .../>
value = object.FillRule
object.FillRule = value
A value of the FillRule enumeration.
This property is read/write. The default value is EvenOdd.
FillRule is mainly relevant for two types of geometries, PathGeometry or GeometryGroup. On other geometries such as RectangleGeometry, the property exists but will have no effect because there is no way in the properties of these geometries to specify segment relationships such that a fill rule behavior is relevant.
The value of IsClosed on a PathFigure within a 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.