<Grid x:Name="LayoutRoot" Background="Transparent">
<Rectangle Fill="Blue" VerticalAlignment="Top" HorizontalAlignment="Center" Height="100" Width="100" ManipulationDelta="Rectangle_ManipulationDelta" Margin="22,10,0,0">
<Rectangle.RenderTransform>
<TranslateTransform x:Name="a"/>
</Rectangle.RenderTransform>
</Rectangle>
</Grid>
private void Rectangle_ManipulationDelta(object sender, System.Windows.Input.ManipulationDeltaEventArgs e)
{
this.a.X += e.DeltaManipulation.Translation.X;
this.a.Y += e.DeltaManipulation.Translation.Y;
}