MatrixTransform MatrixTransform MatrixTransform Class

Definition

Creates an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in a two-dimensional plane.

public : sealed class MatrixTransform : Transform, IMatrixTransform
public sealed class MatrixTransform : Transform, IMatrixTransform
Public NotInheritable Class MatrixTransform Inherits Transform Implements IMatrixTransform
<MatrixTransform .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

This example transforms the position and skew of a rectangle using a MatrixTransform.

<Rectangle Width="60" Height="60" Fill="Blue">
    <Rectangle.RenderTransform>
        <MatrixTransform>
            <MatrixTransform.Matrix >

                <!-- This matrix transforms the x,y position of
                     the rectangle and skews it. -->
                <Matrix OffsetX="30" OffsetY="100" M12="0.5" />
            </MatrixTransform.Matrix>
        </MatrixTransform>
    </Rectangle.RenderTransform>

</Rectangle>

Constructors

MatrixTransform() MatrixTransform() MatrixTransform()

Initializes a new instance of the MatrixTransform class.

public : MatrixTransform()
public MatrixTransform()
Public Sub New()

Properties

Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

Inverse Inverse Inverse

Inherited from GeneralTransform

InverseCore InverseCore InverseCore

Inherited from GeneralTransform

Matrix Matrix Matrix

Gets or sets the Matrix that defines this transformation.

public : Matrix Matrix { get; set; }
public Matrix Matrix { get; set; }
Public ReadWrite Property Matrix As Matrix
<MatrixTransform>
  <MatrixTransform.Matrix>
    singleMatrix
  </MatrixTransform.Matrix>
</MatrixTransform>
Value
Matrix Matrix Matrix

The Matrix structure that defines this transformation. The default is an identity Matrix. An identity matrix has a value of 1 in coefficients [1,1], [2,2], and [3,3]; and a value of 0 in the rest of the coefficients.

MatrixProperty MatrixProperty MatrixProperty

Identifies the Matrix dependency property.

public : static DependencyProperty MatrixProperty { get; }
public static DependencyProperty MatrixProperty { get; }
Public Static ReadOnly Property MatrixProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Matrix dependency property.

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

TransformBounds(Rect) TransformBounds(Rect) TransformBounds(Rect)

Inherited from GeneralTransform

TransformBoundsCore(Rect) TransformBoundsCore(Rect) TransformBoundsCore(Rect)

Inherited from GeneralTransform

TransformPoint(Point) TransformPoint(Point) TransformPoint(Point)

Inherited from GeneralTransform

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also