DCSIMG
Touch behaviors for windows 8 (store & phone) applications - nekgiann's blog - Site Root - StudentGuru

Touch behaviors for windows 8 (store & phone) applications

Below you can find a complete class that will enable you to add Touch Behaviors (such as dragElement or PinchZoom) to your Windows 8 applications.

I wont get into details about the implementation (may on a blog post update). 

Behaviors that are supported:

  • Drag Element Behavior
  • Rotate Behavior
  • PinchZoom Behavior
  • PinchZoom & Rotate Behavior

Class definition:

public static class TouchBehaviors{
       public static void AddDragElementBehavior(FrameworkElement el);
       public static void AddRotateBehavior(FrameworkElement el, bool DragEnabled = true);
       public static void AddPinchZoomBehavior(FrameworkElement el, bool DragEnabled = true);
       public static void AddPinchZoomRotateBehavior(FrameworkElement el, bool DragEnabled = true);
       public static void ClearBehaviors(FrameworkElement el);
}

You can add a behavior to any FrameworkElement (and consequently to any UIElement) as follows:
TouchBehaviors.AddPinchZoomBehavior(r3);
You can find the class and a fully working example here.
http://studentguru.gr/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-12-05/6761.TouchBehaviorsWinRt.rar