Share via


TransformCollection Object

Represents a collection of Transform objects that can be individually accessed by index.

XAML
<TransformCollection ...>
  oneOrMoreTransforms
</TransformCollection>
Scripting
To create an object using scripting, see CreateFromXAML.

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.

Properties

Count, Name

Methods

Add, Clear, Equals, FindName, GetHost, GetItem, GetValue, Insert, Remove, RemoveAt, SetValue

Remarks

TransformCollection is used by TransformGroup to store Transform child elements.

Transforms in a TransformCollection are applied in the order that they appear in the collection, so the index order of each transform in a TransformCollection is meaningful.

TransformCollection defines no methods or properties beyond the basic Collection methods and properties. Methods such as Add or GetItem will expect or return objects that are of type Transform. Transform itself is an abstract type, so this means that the items in the collection will be one of the following:

The XAML syntax for properties that use a TransformCollection is an example of an implicit collection syntax, where you can omit an actual TransformCollection object element, as well as the <TransformGroup.Children> property element. Instead, you generally include one or more Transform derived elements 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.)

See Also

Transform Overview
RotateTransform
ScaleTransform
SkewTransform
TranslateTransform
MatrixTransform
TransformGroup