aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Components
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-07 18:19:55 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-07 18:19:55 +0300
commite051d309be2153f60b32c12022cfd0fe8f2ab913 (patch)
tree0adf3223bb68acc5f88204ceaa3d727b8d067906 /Software/Visual_Studio/Tango.Touch/Components
parent7ec6d80f838749faa39fec5eb838a34ebdd3e411 (diff)
downloadTango-e051d309be2153f60b32c12022cfd0fe8f2ab913.tar.gz
Tango-e051d309be2153f60b32c12022cfd0fe8f2ab913.zip
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Components')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Components/Ripple.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Components/Ripple.cs b/Software/Visual_Studio/Tango.Touch/Components/Ripple.cs
index 2cfd2a0b8..7cf097d8e 100644
--- a/Software/Visual_Studio/Tango.Touch/Components/Ripple.cs
+++ b/Software/Visual_Studio/Tango.Touch/Components/Ripple.cs
@@ -79,6 +79,15 @@ namespace Tango.Touch.Components
public static readonly DependencyProperty CenteredProperty =
DependencyProperty.Register("Centered", typeof(bool), typeof(Ripple), new PropertyMetadata(false));
+ public bool Disabled
+ {
+ get { return (bool)GetValue(DisabledProperty); }
+ set { SetValue(DisabledProperty, value); }
+ }
+ public static readonly DependencyProperty DisabledProperty =
+ DependencyProperty.Register("Disabled", typeof(bool), typeof(Ripple), new PropertyMetadata(false));
+
+
#region Attached Properties
#region PreventRipple
@@ -207,7 +216,7 @@ namespace Tango.Touch.Components
OnRippleDown(new Point(e.GetTouchPoint(this).Position.X, e.GetTouchPoint(this).Position.Y));
}
- private void CancelRipple(bool immidiate = false)
+ public void CancelRipple(bool immidiate = false)
{
if (_isAnimating)
{
@@ -230,6 +239,8 @@ namespace Tango.Touch.Components
private void OnRippleDown(Point position)
{
+ if (Disabled) return;
+
_isAnimating = true;
if (!Centered)