MatrixTransform3D.Matrix Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public Matrix3D Matrix { get; set; }

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
Available since 3.0
Return to top