MatrixTransform3D.Matrix Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a Matrix3D that specifies a 3-D transformation.
public:
property System::Windows::Media::Media3D::Matrix3D Matrix { System::Windows::Media::Media3D::Matrix3D get(); void set(System::Windows::Media::Media3D::Matrix3D value); };
public System.Windows.Media.Media3D.Matrix3D Matrix { get; set; }
member this.Matrix : System.Windows.Media.Media3D.Matrix3D with get, set
Public Property Matrix As Matrix3D
Property Value
A Matrix3D that specifies a 3-D transformation.
Examples
try
{
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;
}
catch
{
MessageBox.Show("Set Matrix3D values or rotation values before transforming");
}
Try
Dim setM11 As Double = Convert.ToDouble(M11Text.Text)
Dim setM21 As Double = Convert.ToDouble(M21Text.Text)
Dim setM31 As Double = Convert.ToDouble(M31Text.Text)
Dim setOffsetX As Double = Convert.ToDouble(OffsetXText.Text)
Dim setM12 As Double = Convert.ToDouble(M12Text.Text)
Dim setM22 As Double = Convert.ToDouble(M22Text.Text)
Dim setM32 As Double = Convert.ToDouble(M32Text.Text)
Dim setOffsetY As Double = Convert.ToDouble(OffsetYText.Text)
Dim setM13 As Double = Convert.ToDouble(M13Text.Text)
Dim setM23 As Double = Convert.ToDouble(M23Text.Text)
Dim setM33 As Double = Convert.ToDouble(M33Text.Text)
Dim setOffsetZ As Double = Convert.ToDouble(OffsetZText.Text)
Dim setM14 As Double = Convert.ToDouble(M14Text.Text)
Dim setM24 As Double = Convert.ToDouble(M24Text.Text)
Dim setM34 As Double = Convert.ToDouble(M34Text.Text)
Dim setM44 As Double = Convert.ToDouble(M44Text.Text)
end_Matrix3D = New Matrix3D(setM11, setM12, setM13, setM14, setM21, setM22, setM23, setM24, setM31, setM32, setM33, setM34, setOffsetX, setOffsetY, setOffsetZ, setM44)
myMatrixTransform3D.Matrix = end_Matrix3D
Catch
MessageBox.Show("Set Matrix3D values or rotation values before transforming")
End Try
Remarks
Dependency Property Information
Identifier field | MatrixProperty |
Metadata properties set to true |
None |
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.