protected override void OnPointerMoved(PointerRoutedEventArgs e)
{
System.Diagnostics.Debug.WriteLine("pointer moved");
- this.gestureRecongnizer.ProcessMoveEvents(e.GetIntermediatePoints(this));
+ try
+ {
+ this.gestureRecongnizer.ProcessMoveEvents(e.GetIntermediatePoints(this));
+ }catch(System.Runtime.InteropServices.COMException ex)
+ {
+ //ピンチズームでこの例外が発生するが、回避できない
+ System.Diagnostics.Debug.WriteLine("expection:" + ex);
+ }
e.Handled = true;
if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse)