aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-11-05 15:28:37 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-11-05 15:28:37 +0200
commita2f88e964e640537bb56db6bafeb2961d950c552 (patch)
tree87eb36abdebe94b1aaa923dd6861f54f2e36d985 /Software/Visual_Studio/Tango.Touch/Controls
parentd7650679fedebb42e5fa9d4d482d7ccf657d6ab4 (diff)
downloadTango-a2f88e964e640537bb56db6bafeb2961d950c552.tar.gz
Tango-a2f88e964e640537bb56db6bafeb2961d950c552.zip
Added mouse leave to TouchClickableControl.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchClickableControl.cs11
1 files changed, 11 insertions, 0 deletions
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
+
/// <summary>
/// Raises the click event and executes the command.
/// </summary>
@@ -113,6 +123,7 @@ namespace Tango.Touch.Controls
Command.Execute(CommandParameter);
}
}
+
#endregion
}
}