aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-10-04 14:56:36 +0300
committerAvi Levkovich <avi@twine-s.com>2018-10-04 14:56:36 +0300
commit632378c43fea445b5ce0808eabc8d02a97a7a387 (patch)
tree0f71a85552f944875da567d0dc391ed981138305 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Notifications/TextInputBoxWindow.xaml.cs
parent5461fa6ed66e087ea3cc582af39a733e1a1202c2 (diff)
parent141b450771f7e98b93eca9492e0cbe800da13e1f (diff)
downloadTango-632378c43fea445b5ce0808eabc8d02a97a7a387.tar.gz
Tango-632378c43fea445b5ce0808eabc8d02a97a7a387.zip
merge conflict
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); }