protected override void OnMouseUp(MouseButtonEventArgs args) { base.OnMouseUp(args); // Look for the mouse op to perform var op = MouseOperations.Active; if (op != null && !op.Cancelled) { op.MouseUp(args); } MouseOperations.EndOp(args.ChangedButton); }