public void OnMouseButtonCancel(object sender, MouseButtonCancelEventArguments args) { if (Page == null) { return; } MouseButtonDownEventArguments prevArgs; if (!_pressedKeys.TryGetValue(args.Button, out prevArgs)) { return; } _pressedKeys.Remove(args.Button); Page.OnMouseButtonCancel(sender, args); }
public virtual void OnMouseButtonCancel(object sender, MouseButtonCancelEventArguments args) { }