aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-10-27 14:07:14 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-10-27 14:07:14 +0200
commit4a41df0b200191ce96a13fb80412e51d46f08cb4 (patch)
tree3c9103e1d97d3dd6601c5f1535bdc26243c6c63a /Software/Visual_Studio/Tango.Touch/Controls
parent88f609c6244121f07b45e8101174fdc293bbcb2d (diff)
downloadTango-4a41df0b200191ce96a13fb80412e51d46f08cb4.tar.gz
Tango-4a41df0b200191ce96a13fb80412e51d46f08cb4.zip
Fixed a bug with PPC storage invalid file na chars.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
index beb7e0c18..224de18a8 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs
@@ -24,13 +24,20 @@ namespace Tango.Touch.Controls
private PasswordBox _password_box;
private DateTime _lost_focus_time;
+ public event EventHandler TextChanged;
+
public String Text
{
get { return (String)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
public static readonly DependencyProperty TextProperty =
- DependencyProperty.Register("Text", typeof(String), typeof(TouchTextBox), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
+ DependencyProperty.Register("Text", typeof(String), typeof(TouchTextBox), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, (d, e) => (d as TouchTextBox).OnTextChanged()));
+
+ private void OnTextChanged()
+ {
+ TextChanged?.Invoke(this, new EventArgs());
+ }
public String Watermark
{