Children (GeometryGroup)


Gets or sets the collection of child Geometry objects.

value = object.Children
object.Children = value




One or more object elements that derive from Geometry. These can be one or more of the following: EllipseGeometry, GeometryGroup, LineGeometry, PathGeometry, RectangleGeometry.

Type: GeometryCollection

The collection of child Geometry objects.

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

The XAML syntax for Children is an example of an implicit collection syntax, where you can omit the GeometryCollection object element as well as the <GeometryGroup.Children> property element. Instead, you generally include one or more Geometry-type object elements (EllipseGeometry, GeometryGroup, LineGeometry, PathGeometry, or RectangleGeometry) as child elements of a GeometryGroup. Explicitly including a GeometryCollection 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.

Community Additions