private void Window_Activated(object sender, EventArgs e) { TxtInput.Focus(); TxtInput.SelectAll(); }
} // end method InitialiseControlStatus // select all in the specified text box private void SelectText() { TxtInput.Select(); TxtInput.SelectAll(); } // end method SelectText
private void Window_Loaded(object sender, RoutedEventArgs e) { TxtInput.Focus(); TxtInput.SelectAll(); }