private void MessageWindow_Loaded(object sender, RoutedEventArgs e) { if (this.MessageType != MessageWindowType.TextInput) { return; } Activate(); TextInputField.Focus(); Keyboard.Focus(TextInputField); TextInputField.SelectAll(); }
private void MessageWindow_Loaded(object sender, RoutedEventArgs e) { if (this.MessageType != MessageWindowType.TextInput) { return; } Activate(); TextInputField.Focus(); Keyboard.Focus(TextInputField); TextInputField.SelectAll(); }