Children Property
Collapse the table of content
Expand the table of content

TransformGroup.Children Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the collection of child Transform objects.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public TransformCollection Children { get; set; }

XAML Values

oneOrMoreTransforms

One or more object elements for classes that derive from Transform. Typically these are the Windows Phone defined classes RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, or TransformGroup. Object elements defined here become members of the TransformCollection collection when code accesses the Children property at run time.

Property Value

Type: System.Windows.Media.TransformCollection
The collection of child Transform objects. The default is an empty collection.

Dependency property identifier field: ChildrenProperty

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. For more information about XAML implicit collection syntax, see XAML for Windows Phone 8.

In a composite transformation, the order of individual transformations is significant. 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft