diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-20 07:37:24 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-20 07:37:24 +0300 |
| commit | 3970e5d4d2259f31608bd000732e4f731b896bd7 (patch) | |
| tree | cef0fc1cc8bc3abfa0a55d5588f0a2bfcec80db3 /Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs | |
| parent | bf95ba5cdea1a8f067b73b8ac87040e0e6a5e4c9 (diff) | |
| download | Tango-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.cs | 10 |
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) |
