TransformGroup class

Applies to Windows and Windows Phone

Represents a composite Transform composed of other Transform objects.

Inheritance

Object
  DependencyObject
    GeneralTransform
      Transform
        TransformGroup

Syntax


public ref class TransformGroup sealed : Transform


<TransformGroup>
  oneOrMoreTransforms
</TransformGroup>

XAML Values

oneOrMoreTransforms

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

Attributes

[ContentProperty("Name=Children")]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The TransformGroup class has these types of members:

Constructors

The TransformGroup class has these constructors.

ConstructorDescription
TransformGroup Initializes a new instance of the TransformGroup class.

 

Methods

The TransformGroup class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)
TransformBounds Transforms the specified bounding box and returns an axis-aligned bounding box that is exactly large enough to contain it. (Inherited from GeneralTransform)
TransformBoundsCore Provides the means to override the TransformBounds behavior in a derived transform class. (Inherited from GeneralTransform)
TransformPoint Uses this transformation object's logic to transform the specified point, and returns the result. (Inherited from GeneralTransform)
TryTransform Attempts to transform the specified point and returns a value that indicates whether the transformation was successful. (Inherited from GeneralTransform)
TryTransformCore Provides the means to override the TryTransform behavior in a derived transform class. (Inherited from GeneralTransform)

 

Properties

The TransformGroup class has these properties.

PropertyAccess typeDescription

Children

Read/writeGets or sets the collection of child Transform objects.

ChildrenProperty

Read-onlyIdentifies the Children dependency property.

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

Inverse

Read-onlyGets the inverse transformation of this GeneralTransform, if possible. (Inherited from GeneralTransform)

InverseCore

Read-onlyImplements the behavior for return value of Inverse in a derived or custom GeneralTransform. (Inherited from GeneralTransform)

Value

Read-onlyGets the Matrix structure that describes the transformation represented by this TransformGroup.

 

Examples

This example shows the markup for using a TransformGroup to fill the RenderTransform property.


<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <TextBlock FontSize="28" Text="Hello" Foreground="Black">
        <TextBlock.RenderTransform>
            <TransformGroup>
                <RotateTransform Angle="45" />
                <SkewTransform CenterX="0" CenterY="0" AngleX="60"/>
            </TransformGroup>
        </TextBlock.RenderTransform>
    </TextBlock>
</StackPanel>


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

Transform

 

 

Show:
© 2014 Microsoft