void scrollviewer_DoubleTapped(object sender, Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs e) { var img = VisualTreeUtils.FindFirstElementInVisualTree <Image>(sender as DependencyObject); if (img == null) { return; } var point = e.GetPosition(img); ImageZoom(point, (ScrollViewer)sender, img); }
public void ImageZoom() { ImageZoom(new Point(), (ScrollViewer)AssociatedObject, VisualTreeUtils.FindFirstElementInVisualTree <Image>(AssociatedObject as DependencyObject)); }