public override void PointerPressed(IBehaviourEventSource sender, PointerEventContext context) { if (context.PointerButton != PointerButton.Right && Keyboard.Modifiers == ModifierKeys.None) { base.StartMeasuring(sender, context); base.PointerPressed(sender, context); } }
public override void PointerReleased(IBehaviourEventSource sender, PointerEventContext context) { if (context.PointerButton != PointerButton.Right && Keyboard.Modifiers == ModifierKeys.None) { base.PointerReleased(sender, context); if (_rectangle.Width == 0.0 && this.SelectionRemoved != null) { this.SelectionRemoved(this, new EventArgs()); } } }