Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <!--<SnippetUI>--> | |
| <Window x:Class="BasicManipulation.MainWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| Title="Move, Size, and Rotate the Square" | |
| WindowState="Maximized" | |
| ManipulationStarting="Window_ManipulationStarting" | |
| ManipulationDelta="Window_ManipulationDelta" | |
| ManipulationInertiaStarting="Window_InertiaStarting"> | |
| <Window.Resources> | |
| <!--The movement, rotation, and size of the Rectangle is | |
| specified by its RenderTransform.--> | |
| <MatrixTransform x:Key="InitialMatrixTransform"> | |
| <MatrixTransform.Matrix> | |
| <Matrix OffsetX="200" OffsetY="200"/> | |
| </MatrixTransform.Matrix> | |
| </MatrixTransform> | |
| </Window.Resources> | |
| <Canvas> | |
| <Rectangle Fill="Red" Name="manRect" | |
| Width="200" Height="200" | |
| RenderTransform="{StaticResource InitialMatrixTransform}" | |
| IsManipulationEnabled="true" /> | |
| </Canvas> | |
| </Window> | |
| <!--</SnippetUI>--> |