Freigeben über


MatrixTransform.Matrix Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the Matrix that defines this transformation.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property Matrix As Matrix
public Matrix Matrix { get; set; }
<MatrixTransform>
  <MatrixTransform.Matrix>
    singleMatrix
  </MatrixTransform.Matrix>
</MatrixTransform>

XAML Values

  • singleMatrix
    Exactly one Matrix object element.

Property Value

Type: System.Windows.Media.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.

Remarks

Dependency property identifier field: MatrixProperty

The Matrix class is for custom transformations. Often it is easier to use the specific transformations RotateTransform, ScaleTransform, SkewTransform, or TranslateTransform.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.