aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-07-12 09:46:44 +0300
committerAvi Levkovich <avi@twine-s.com>2018-07-12 09:46:44 +0300
commitdec3cd03aec51dca67150e2f6ba76c7eda7f11a4 (patch)
tree97f8ee8efd166ab9578f1a4baf1b73c45961abb1 /Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
parent86b7dbca112046dea1d3dd7d2904440afc2acb7d (diff)
parent1fe6f6b50598fff4d52273138936031f3dee7866 (diff)
downloadTango-dec3cd03aec51dca67150e2f6ba76c7eda7f11a4.tar.gz
Tango-dec3cd03aec51dca67150e2f6ba76c7eda7f11a4.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
index c45701e99..aee5fae26 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
@@ -70,7 +70,7 @@ namespace Tango.Touch.Controls
set { SetValue(MinimumProperty, value); }
}
public static readonly DependencyProperty MinimumProperty =
- DependencyProperty.Register("Minimum", typeof(double), typeof(TouchNumericTextBox), new PropertyMetadata(.0));
+ DependencyProperty.Register("Minimum", typeof(double), typeof(TouchNumericTextBox), new PropertyMetadata(0.0));
public double Maximum
{
@@ -108,6 +108,8 @@ namespace Tango.Touch.Controls
_text_box.GotFocus += _text_box_GotFocus;
_text_box.TextChanged += _text_box_TextChanged;
+ Value = Value;
+
OnValueChanged();
}