Manipulation Events Example

The following example illustrates how to move and scale a UIElement using the various manipulation events.

Within the ManipulationEventsView XAML file is a Border control, defined as shown:

<StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">    <Border        Height="400"        Width="400"        Background="{StaticResource PhoneAccentBrush}"        ManipulationStarted="HandleManipulationStarted"        ManipulationDelta="HandleManipulationDelta"        ManipulationCompleted="HandleManipulationCompleted">        <TextBlock x:Name="TextBlock_Message" />        <Border.RenderTransform>            <CompositeTransform x:Name="compositeTransform"/>        </Border.RenderTransform ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.