From a2f88e964e640537bb56db6bafeb2961d950c552 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 5 Nov 2019 15:28:37 +0200 Subject: Added mouse leave to TouchClickableControl. --- .../Tango.Touch/Controls/TouchClickableControl.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs') diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs index 92e60f7bc..b14917846 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs @@ -101,6 +101,16 @@ namespace Tango.Touch.Controls _isMouseDown = false; } + protected override void OnMouseLeave(MouseEventArgs e) + { + base.OnMouseLeave(e); + _isMouseDown = false; + } + + #endregion + + #region Virtual Methods + /// /// Raises the click event and executes the command. /// @@ -113,6 +123,7 @@ namespace Tango.Touch.Controls Command.Execute(CommandParameter); } } + #endregion } } -- cgit v1.3.1