aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-01-28 12:22:33 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-01-28 12:22:33 +0200
commit9db4506d34e2ff704ef00d6047338d049be51b46 (patch)
tree1ef1dc42c756f3ff5d00f31d4bf518949e918ca6 /Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
parent0437a03714b7d7b2658f3075198fb030cc353786 (diff)
downloadTango-9db4506d34e2ff704ef00d6047338d049be51b46.tar.gz
Tango-9db4506d34e2ff704ef00d6047338d049be51b46.zip
Fixed issue with TouchTextBox.
Fixed issue with SignalRAdapter.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
index 224de18a8..be9e4abcf 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
@@ -34,6 +34,17 @@ namespace Tango.Touch.Controls
public static readonly DependencyProperty TextProperty =
DependencyProperty.Register("Text", typeof(String), typeof(TouchTextBox), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, (d, e) => (d as TouchTextBox).OnTextChanged()));
+
+ public int MaxLength
+ {
+ get { return (int)GetValue(MaxLengthProperty); }
+ set { SetValue(MaxLengthProperty, value); }
+ }
+ public static readonly DependencyProperty MaxLengthProperty =
+ DependencyProperty.Register("MaxLength", typeof(int), typeof(TouchTextBox), new PropertyMetadata(0));
+
+
+
private void OnTextChanged()
{
TextChanged?.Invoke(this, new EventArgs());