MatrixTransform
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, IMatrixTransformpublic sealed class MatrixTransform : Transform, IMatrixTransformPublic NotInheritable Class MatrixTransform Inherits Transform Implements IMatrixTransform// This API is not available in Javascript.
<MatrixTransform .../>
- Inheritance
-
MatrixTransformMatrixTransformMatrixTransformMatrixTransform
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
ClearValue(DependencyProperty)ClearValue(DependencyProperty)ClearValue(DependencyProperty)ClearValue(DependencyProperty)
GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)GetAnimationBaseValue(DependencyProperty)
GetValue(DependencyProperty)GetValue(DependencyProperty)GetValue(DependencyProperty)GetValue(DependencyProperty)
ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)ReadLocalValue(DependencyProperty)
RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)
SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)SetValue(DependencyProperty,Object)
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.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)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() MatrixTransform()
Initializes a new instance of the MatrixTransform class.
public : MatrixTransform()public MatrixTransform()Public Sub New()// This API is not available in Javascript.
Properties
Matrix 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// This API is not available in Javascript.
<MatrixTransform>
<MatrixTransform.Matrix>
singleMatrix
</MatrixTransform.Matrix>
</MatrixTransform>
MatrixProperty 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// This API is not available in Javascript.
The identifier for the Matrix dependency property.