//File:Window.xaml.vb Imports System Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Media Imports System.Windows.Shapes Namespace WpfApplication1 Public Partial Class ObjectMatrixTransforms Inherits Window Public Sub New() InitializeComponent() End Sub Public Sub BtnClose_Click(sender As Object, e As EventArgs) Dim m As New Matrix() m.M11 = 1 m.M12 = 0 m.M21 = 0 m.M22 = 1 m.OffsetX = 1 m.OffsetY = 2 matrixTransform.Matrix = m End Sub End Class End Namespace