Children Property (TransformGroup)

Gets or sets the collection of child Transform objects.

XAML
<TransformGroup>
  oneOrMoreTransforms
</TransformGroup>
Scripting
value = object.Children
object.Children = value

XAML Values

oneOrMoreTransforms One or more object elements that derive from Transform. These can be one or more of the following: RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, TransformGroup.

Property Value

TransformCollection

The collection of child Transform objects.

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

Remarks

The XAML syntax for properties that use a TransformCollection is an example of an implicit collection syntax, where you can omit the TransformCollection object element, as well as the <TransformGroup.Children> property element. Instead, you generally include one or more transform object elements (RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, TransformGroup) as child elements of a TransformGroup. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a TransformCollection 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.)

In a composite transformation, the order of individual transformations is important. For example, if you first rotate, then scale, then translate, you get a different result than if you first translate, then rotate, then scale. One reason order is significant is that transformations such as rotation and scaling are done with respect to the origin of the coordinate system. Scaling an object that is centered at the origin produces a different result than scaling an object that has been moved away from the origin. Similarly, rotating an object that is centered at the origin produces a different result than rotating an object that has been moved away from the origin.

Nesting TransformGroup elements is permitted.

Applies To

TransformGroup

See Also

Silverlight Transforms Overview
TransformGroup
TransformCollection