Skip to content

Instantly share code, notes, and snippets.

@arashadbm
arashadbm / PanAndZoomBehavior.cs
Last active January 28, 2016 16:18 — forked from sgraf812/PanAndZoomBehavior.cs
Pan and zoom behavior for Windows Phone 8 with DoupleTap to zoom in/out and Fixed Translation Issue when zoomed in .No pan inertia/squish.
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
using System.Windows.Media;
using Microsoft.Phone.Controls;
using System.Windows.Media.Animation;
using System;
//Original behavior in this Link : https://gist.github.com/sgraf812/7033464#file-panandzoombehavior
//In this version: