title: Windows 8.1 Metro app - Pinch and zoom an Image
body: <p>Is there any way to implement pinch and zoom the image control inside XAML in Windows 8.1, i am trying Manipulation delta event. But that event not get fired, also i tried setting ManipulationMode="All". </p>
  
  <pre><code>&lt;Image x:Name="kn" ManipulationMode="All" ManipulationDelta="kn_ManipulationDelta" HorizontalAlignment="Center" VerticalAlignment="Center" Height="315" Width="360" RenderTransformOrigin="0.5, 0.5"&gt;
    &lt;Image.RenderTransform&gt;
    &lt;CompositeTransform&gt;&lt;/CompositeTransform&gt;
    &lt;/Image.RenderTransform&gt;
  &lt;/Image&gt;
  </code></pre>
  
  <p>And in cs file</p>
  
  <pre><code>private void kn_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
  {
   UIElement element = sender as UIElement;
   CompositeTransform transform = element.RenderTransform as CompositeTransform;
   if (transform != null)
   {
  
   transform.ScaleX *= e.Delta.Scale;
   transform.ScaleY *= e.Delta.Scale;
   transform.Rotation += e.Delta.Scale / Math.PI;
   transform.TranslateX += e.Delta.Translation.X;
   transform.TranslateY += e.Delta.Translation.Y;
   }
  }
  </code></pre>
  
  <p>Is there anything i have to set. Or i have to go with some other way?</p>