O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required