Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MatrixTransform3D.Matrix Property

Gets or sets a Matrix3D that specifies a 3-D transformation.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public Matrix3D Matrix { get; set; }
    <Matrix3D .../>
<object Matrix="Matrix3D" .../>

Property Value

Type: System.Windows.Media.Media3D.Matrix3D
A Matrix3D that specifies a 3-D transformation. 

Identifier field


Metadata properties set to true


                Double setM11 = System.Convert.ToDouble(M11Text.Text);
                Double setM21 = System.Convert.ToDouble(M21Text.Text);
                Double setM31 = System.Convert.ToDouble(M31Text.Text);
                Double setOffsetX = System.Convert.ToDouble(OffsetXText.Text);

                Double setM12 = System.Convert.ToDouble(M12Text.Text);
                Double setM22 = System.Convert.ToDouble(M22Text.Text);
                Double setM32 = System.Convert.ToDouble(M32Text.Text);
                Double setOffsetY = System.Convert.ToDouble(OffsetYText.Text);

                Double setM13 = System.Convert.ToDouble(M13Text.Text);
                Double setM23 = System.Convert.ToDouble(M23Text.Text);
                Double setM33 = System.Convert.ToDouble(M33Text.Text);
                Double setOffsetZ = System.Convert.ToDouble(OffsetZText.Text);

                Double setM14 = System.Convert.ToDouble(M14Text.Text);
                Double setM24 = System.Convert.ToDouble(M24Text.Text);
                Double setM34 = System.Convert.ToDouble(M34Text.Text);
                Double setM44 = System.Convert.ToDouble(M44Text.Text);

            endMatrix3D = new Matrix3D(setM11, setM12, setM13, setM14, setM21, setM22, setM23, setM24, setM31, setM32, setM33, setM34, setOffsetX, setOffsetY, setOffsetZ, setM44);

            myMatrixTransform3D.Matrix = endMatrix3D;
            MessageBox.Show("Set Matrix3D values or rotation values before transforming");

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft