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-12-28 00:44:38 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-28 00:44:38 +0200
commit0fdbc932838bb6e007cfa8a0079d1880c800ed81 (patch)
treece95fc1a7fe455c66aced9fad1650be8bb6067a1 /Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
parent518c9192e4445d82f192edcccb2ffb64ffc88a65 (diff)
downloadTango-0fdbc932838bb6e007cfa8a0079d1880c800ed81.tar.gz
Tango-0fdbc932838bb6e007cfa8a0079d1880c800ed81.zip
Removed length from job viewer.
Improved FastTextBlock. Improved PPC segments loading ability from ~40 to ~150.
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, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
index da5d5e34b..ccb66d009 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNumericTextBox.cs
@@ -21,7 +21,7 @@ namespace Tango.Touch.Controls
{
private TextBox _text_box;
private bool _prevent_text_change;
- private TextBlock _text_block;
+ private FastTextBlock _text_block;
private double _lastValue;
Regex regex_integer = new Regex(@"^-?[0-9]\d*(\d+)?$");
Regex regex_double = new Regex(@"^-?[0-9]\d*(\.\d+)?$");
@@ -124,7 +124,7 @@ namespace Tango.Touch.Controls
base.OnApplyTemplate();
_text_box = GetTemplateChild("PART_TextBox") as TextBox;
- _text_block = GetTemplateChild("PART_TextDisplay") as TextBlock;
+ _text_block = GetTemplateChild("PART_TextDisplay") as FastTextBlock;
_text_box.PreviewTextInput += _text_box_PreviewTextInput;
_text_box.PreviewKeyDown += _text_box_PreviewKeyDown;
_text_box.LostFocus += _text_box_LostFocus;