aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 07:37:24 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-20 07:37:24 +0300
commit3970e5d4d2259f31608bd000732e4f731b896bd7 (patch)
treecef0fc1cc8bc3abfa0a55d5588f0a2bfcec80db3 /Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
parentbf95ba5cdea1a8f067b73b8ac87040e0e6a5e4c9 (diff)
downloadTango-3970e5d4d2259f31608bd000732e4f731b896bd7.tar.gz
Tango-3970e5d4d2259f31608bd000732e4f731b896bd7.zip
Fixed issue with PPC numeric textbox clipping.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
index bf571f36a..2a0caf13e 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
@@ -175,6 +175,16 @@ namespace Tango.Touch.Controls
}
_text_block.Text = Value.ToString(StringFormat);
+
+ BindingExpression b = GetBindingExpression(ValueProperty);
+
+ if (b != null)
+ {
+ b.UpdateSource();
+ }
+
+ DoubleValueChangedEventArgs args = new DoubleValueChangedEventArgs(ValueChangedEvent, this, Value);
+ RaiseEvent(args);
}
private void _text_box_PreviewKeyDown(object sender, KeyEventArgs e)