From 9db4506d34e2ff704ef00d6047338d049be51b46 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 28 Jan 2020 12:22:33 +0200 Subject: Fixed issue with TouchTextBox. Fixed issue with SignalRAdapter. --- Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs') 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()); -- cgit v1.3.1