From 873de6078c8e53067ce772d8bfb214dc026ac54e Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 20 Jan 2022 17:22:35 +0200 Subject: Resolved some bugs in new UI PPC Related Work Items: #6127, #6130, #6136, #6137, #6138 --- Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs | 5 +++++ .../Visual_Studio/Tango.Touch/Controls/TouchNumericUpDownConrol.xaml | 2 +- 2 files changed, 6 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 224f2d25b..77891b36b 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs @@ -280,6 +280,11 @@ namespace Tango.Touch.Controls e.Handled = true; return; } + else if(e.Text == "." && HasDecimalPoint) + { + e.Handled = false; + return; + } if (e.Text == "-" && !_text_box.Text.Contains("-")) { diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericUpDownConrol.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericUpDownConrol.xaml index 8963c9c3e..a47d890b7 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericUpDownConrol.xaml +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericUpDownConrol.xaml @@ -81,7 +81,7 @@ + Value="{Binding Value,RelativeSource={RelativeSource AncestorType=local:TouchNumericUpDownConrol}}" Minimum="{Binding MinValue,RelativeSource={RelativeSource AncestorType=local:TouchNumericUpDownConrol}}" Maximum="{Binding MaxValue,RelativeSource={RelativeSource AncestorType=local:TouchNumericUpDownConrol}}" HasDecimalPoint="True" StringFormat="0.#"/> -- cgit v1.3.1