Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TransformGroup.Children Property

Gets or sets the collection of child Transform objects.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public TransformCollection Children { get; set; }

XAML Values

oneOrMoreTransforms

One or more object elements for classes that derive from Transform. Typically these are the Silverlight 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 Overview.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.