aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-10-03 12:14:39 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-10-03 12:14:39 +0300
commita4955b69fbbec89a80418ed8e8271e56db61bf32 (patch)
tree53ce5cf60f03b909e815475c1087ddcfad87af81 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
parent0f546e28ff310f93da65ec6a8e7fd53ae19c0988 (diff)
parent251cf705409697f339828359b6770534116dca5f (diff)
downloadTango-a4955b69fbbec89a80418ed8e8271e56db61bf32.tar.gz
Tango-a4955b69fbbec89a80418ed8e8271e56db61bf32.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
index d774c14eb..bc11dfd18 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
@@ -26,6 +26,14 @@ namespace Tango.MachineStudio.UI.Notifications
{
InitializeComponent();
this.Loaded += TextInputBoxWindow_Loaded;
+
+ ContentRendered += TextInputBoxWindow_ContentRendered;
+ }
+
+ private void TextInputBoxWindow_ContentRendered(object sender, EventArgs e)
+ {
+ txtText.Focus();
+ txtText.SelectAll();
}
private void TextInputBoxWindow_Loaded(object sender, RoutedEventArgs e)
@@ -34,12 +42,8 @@ namespace Tango.MachineStudio.UI.Notifications
ani.To = 1;
ani.Duration = TimeSpan.FromSeconds(0.5);
this.BeginAnimation(Window.OpacityProperty, ani);
-
- txtText.Focus();
}
-
-
public String Hint
{
get { return (String)GetValue(HintProperty); }