/// <summary> /// Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. /// </summary> /// <param name="e"> /// The <see cref="T:System.Windows.Input.StylusSystemGestureEventArgs"/> that contains the event data. /// </param> protected override void OnStylusSystemGesture(StylusSystemGestureEventArgs e) { base.OnStylusSystemGesture(e); // Debug.WriteLine("OnStylusSystemGesture: " + e.SystemGesture); if (e.SystemGesture == SystemGesture.HoldEnter) { var p = e.GetPosition(this); this.changeLookAtHandler.Started(new ManipulationEventArgs(p)); this.changeLookAtHandler.Completed(new ManipulationEventArgs(p)); e.Handled = true; } if (e.SystemGesture == SystemGesture.TwoFingerTap) { this.ZoomExtents(); e.Handled = true; } }
/// <summary> /// Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. /// </summary> /// <param name="e"> /// The <see cref="T:System.Windows.Input.StylusSystemGestureEventArgs" /> that contains the event data. /// </param> protected override void OnStylusSystemGesture(StylusSystemGestureEventArgs e) { base.OnStylusSystemGesture(e); // Debug.WriteLine("OnStylusSystemGesture: " + e.SystemGesture); if (e.SystemGesture == SystemGesture.HoldEnter) { Point p = e.GetPosition(this); this.changeLookAtHandler.Started(new ManipulationEventArgs(p)); this.changeLookAtHandler.Completed(new ManipulationEventArgs(p)); e.Handled = true; } /// DELETED BY SJT FOR .NET 3.5 //if (e.SystemGesture == SystemGesture.TwoFingerTap) //{ // this.ZoomExtents(); // e.Handled = true; //} }