From 7dcc2ebea136baff65860d0c3c59042fcd4fc6e3 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Sun, 17 Jul 2022 15:17:34 +0300 Subject: PPC. GUI changes Related Work Items: #6699 --- .../Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs | 8 +++++++- .../Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml | 2 +- .../Tango.Touch/Styles/TouchNumericUpDownControl.xaml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.Touch') diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs index dbda2320e..15c516124 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs @@ -73,7 +73,13 @@ namespace Tango.Touch.Controls public static readonly DependencyProperty DisplayWatermarkHintProperty = DependencyProperty.Register("DisplayWatermarkHint", typeof(bool), typeof(TouchNumericTextBox), new PropertyMetadata(false)); - + public bool HideUnderline + { + get { return (bool)GetValue(HideUnderlineProperty); } + set { SetValue(HideUnderlineProperty, value); } + } + public static readonly DependencyProperty HideUnderlineProperty = + DependencyProperty.Register("HideUnderline", typeof(bool), typeof(TouchNumericTextBox), new PropertyMetadata(false)); public String StringFormat { diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml index ff4756160..3fd056ee2 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml @@ -44,7 +44,7 @@ - + diff --git a/Software/Visual_Studio/Tango.Touch/Styles/TouchNumericUpDownControl.xaml b/Software/Visual_Studio/Tango.Touch/Styles/TouchNumericUpDownControl.xaml index 1fc25c0ec..961b22c0f 100644 --- a/Software/Visual_Studio/Tango.Touch/Styles/TouchNumericUpDownControl.xaml +++ b/Software/Visual_Studio/Tango.Touch/Styles/TouchNumericUpDownControl.xaml @@ -82,7 +82,7 @@ + Value="{Binding Value,RelativeSource={RelativeSource AncestorType=controls:TouchNumericUpDownConrol}, Mode=TwoWay}" Minimum="{Binding MinValue,RelativeSource={RelativeSource AncestorType=controls:TouchNumericUpDownConrol}}" Maximum="{Binding MaxValue,RelativeSource={RelativeSource AncestorType=controls:TouchNumericUpDownConrol}, Mode=TwoWay}" HideUnderline="True"/> -- cgit v1.3.1