Freigeben über


TransformGroup.Children Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the collection of child Transform objects.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property Children As TransformCollection
public TransformCollection Children { get; set; }

XAML Values

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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