Matrix​Transform Matrix​Transform Matrix​Transform 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, IMatrixTransformpublic sealed class MatrixTransform : Transform, IMatrixTransformPublic 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)

Inherited Members

Inherited methods

Inherited properties

Windows.UI.Xaml.Media.GeneralTransform.TryTransform(Windows.Foundation.Point,Windows.Foundation.Point)Windows.UI.Xaml.Media.GeneralTransform.TryTransform(Windows.Foundation.Point,Windows.Foundation.Point)Windows.UI.Xaml.Media.GeneralTransform.TryTransform(Windows.Foundation.Point,Windows.Foundation.Point)
Windows.UI.Xaml.Media.GeneralTransform.TryTransformCore(Windows.Foundation.Point,Windows.Foundation.Point)Windows.UI.Xaml.Media.GeneralTransform.TryTransformCore(Windows.Foundation.Point,Windows.Foundation.Point)Windows.UI.Xaml.Media.GeneralTransform.TryTransformCore(Windows.Foundation.Point,Windows.Foundation.Point)

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()
Attributes

Properties

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.

Attributes

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.

Attributes

See Also