From c2c59833f0f946418b69b935c62867ca5fcccd49 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Tue, 28 Jun 2022 13:22:54 +0300 Subject: PPC. Gui changes. Related Work Items: #6695, #6725 --- .../Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs | 9 +++++++++ .../Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Tango.Touch/Controls') diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs index 77891b36b..dbda2320e 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs @@ -131,6 +131,15 @@ namespace Tango.Touch.Controls public static readonly DependencyProperty UpdateBindingOnlyWhenFocusedProperty = DependencyProperty.Register("UpdateBindingOnlyWhenFocused", typeof(bool), typeof(TouchNumericTextBox), new PropertyMetadata(false)); + public Brush RippleBrush + { + get { return (Brush)GetValue(RippleBrushProperty); } + set { SetValue(RippleBrushProperty, value); } + } + public static readonly DependencyProperty RippleBrushProperty = + DependencyProperty.Register("RippleBrush", typeof(Brush), typeof(TouchNumericTextBox), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(189,189,189)) { Opacity = 0.28 })); + + public virtual bool HasError { get diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml index f26e53e73..ff4756160 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml @@ -87,7 +87,8 @@ - + + -- cgit v1.3.1