xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Object Matrix Transforms" Height="300" Width="400">
//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace WpfApplication1
{
public partial class ObjectMatrixTransforms : Window
{
public ObjectMatrixTransforms()
{
InitializeComponent();
}
public void BtnApply_Click(object sender, EventArgs e)
{
Matrix m = new Matrix();
m.M11 = 1;
m.M12 = 0;
m.M21 = 0;
m.M22 = 1;
m.OffsetX = 1;
m.OffsetY = 2;
matrixTransform.Matrix = m;
}
}
}