Windows Dev Center

CompositeTransform Class

Wendet mehrere Transformationsvorgänge auf ein Objekt an.

Vererbung

Object
  DependencyObject
    GeneralTransform
      Transform
        CompositeTransform

Syntax


public sealed class CompositeTransform : Transform


<CompositeTransform .../>

Attribute

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Member

CompositeTransformKlasse hat diese Membertypen:

Konstruktoren

CompositeTransformKlasse hat diese Konstruktoren.

KonstruktorBeschreibung
CompositeTransform Initializes a new instance of the CompositeTransform class.

 

Methoden

The CompositeTransform Klasse hat diese Methoden. Es erbt auch Methoden von Object Klasse.

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

 

Eigenschaften

Der CompositeTransformKlasse hat diese Eigenschaften.

EigenschaftZugriffstypBeschreibung

CenterX

Lese-/SchreibzugriffGets or sets the x-coordinate of the center point for all transforms specified by the CompositeTransform.

CenterXProperty

SchreibgeschütztIdentifies the CenterX dependency property.

CenterY

Lese-/SchreibzugriffGets or sets the y-coordinate of the center point for all transforms specified by the CompositeTransform.

CenterYProperty

SchreibgeschütztIdentifies the CenterY dependency property.

Dispatcher

SchreibgeschütztGets the CoreDispatcher that this object is associated with. (Geerbt von DependencyObject)

Inverse

SchreibgeschütztGets the inverse transformation of this GeneralTransform, if possible. (Geerbt von GeneralTransform)

InverseCore

SchreibgeschütztImplements the behavior for return value of Inverse in a derived or custom GeneralTransform. (Geerbt von GeneralTransform)

Rotation

Lese-/SchreibzugriffGets or sets the angle, in degrees, of clockwise rotation.

RotationProperty

SchreibgeschütztIdentifies the Rotation dependency property.

ScaleX

Lese-/SchreibzugriffGets or sets the x-axis scale factor. You can use this property to stretch or shrink an object horizontally.

ScaleXProperty

SchreibgeschütztIdentifies the ScaleX dependency property.

ScaleY

Lese-/SchreibzugriffGets or sets the y-axis scale factor. You can use this property to stretch or shrink an object vertically.

ScaleYProperty

SchreibgeschütztIdentifies the ScaleY dependency property.

SkewX

Lese-/SchreibzugriffGets or sets the x-axis skew angle, which is measured in degrees counterclockwise from the y-axis. A skew transform can be useful for creating the illusion of three-dimensional depth in a two-dimensional object.

SkewXProperty

SchreibgeschütztIdentifies the SkewX dependency property.

SkewY

Lese-/SchreibzugriffGets or sets the y-axis skew angle, which is measured in degrees counterclockwise from the x-axis. A skew transform can be useful for creating the illusion of three-dimensional depth in a two-dimensional object.

SkewYProperty

SchreibgeschütztIdentifies the SkewY dependency property.

TranslateX

Lese-/SchreibzugriffGets or sets the distance to translate along the x-axis.

TranslateXProperty

SchreibgeschütztIdentifies the TranslateX dependency property.

TranslateY

Lese-/SchreibzugriffGets or sets the distance to translate (move) an object along the y-axis.

TranslateYProperty

SchreibgeschütztIdentifies the TranslateY dependency property.

 

Beispiele

Dieses Beispiel zeigt, wie dieselben Transformationen auf ein Objekt entweder mit CompositeTransform oder mit TransformGroup angewendet werden.


<StackPanel Margin="50">
    <Canvas Background="Black" Width="200" Height="200">
        <Rectangle Height="100" Width="100" Fill="Red">
            <Rectangle.RenderTransform>

                <!-- This one line of markup is the equivalent of the entire
             TransformGroup block in the other Canvas below. -->
                <CompositeTransform SkewX="30" Rotation="45" ScaleX="0.8" ScaleY="0.8" />
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>

    <Canvas Margin="10" Background="Black" Width="200" Height="200">
        <Rectangle Height="100" Width="100" Fill="Red">
            <Rectangle.RenderTransform>
                <TransformGroup>

                    <!-- Note that you have to apply these transforms in 
                     a specific order to get the same effect as the
                     CompositeTransform. -->
                    <ScaleTransform ScaleX="0.8" ScaleY="0.8" />
                    <SkewTransform AngleX="30" />
                    <RotateTransform Angle="45" />
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>
</StackPanel>


Anforderungen

Mindestens unterstützter Client

Windows 8 [Nur Windows Store-Apps]

Mindestens unterstützter Server

Windows Server 2012 [Nur Windows Store-Apps]

Namespace

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

Metadaten

Windows.winmd

Siehe auch

Transform

 

 

Anzeigen:
© 2015 Microsoft