aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2022-07-17 15:17:34 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2022-07-17 15:17:34 +0300
commit7dcc2ebea136baff65860d0c3c59042fcd4fc6e3 (patch)
tree25d8b7e7d1bcdfc86dfbce5df2a6c9db857dacc6 /Software/Visual_Studio/Tango.Touch/Controls
parent0ebf1c2723114689200d6d01e7d0bbb9f194119a (diff)
downloadTango-7dcc2ebea136baff65860d0c3c59042fcd4fc6e3.tar.gz
Tango-7dcc2ebea136baff65860d0c3c59042fcd4fc6e3.zip
PPC. GUI changes
Related Work Items: #6699
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs8
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.xaml2
2 files changed, 8 insertions, 2 deletions
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 @@
<TextBlock FontSize="12" Foreground="{StaticResource TangoValidationErrorBrush}" Margin="0 5 0 0" Text="{Binding RelativeSource={RelativeSource AncestorType=local:TouchNumericTextBox},Path=(Validation.Errors)/ErrorContent}"></TextBlock>
</Canvas>
<DockPanel>
- <Grid DockPanel.Dock="Bottom" Height="2">
+ <Grid DockPanel.Dock="Bottom" Height="2" Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=HideUnderline,Converter={StaticResource BooleanToVisibilityInverseConverter}}">
<Rectangle Height="1" Fill="{StaticResource TangoTextWatermarkBrush}" />
<Rectangle Height="2" RenderTransformOrigin="0.5,0.5" >
<Rectangle.Style>