//Ctrl+A実装 private void ContentTextBox_KeyDown(object sender, KeyEventArgs e) { //Ctrl + A if (e.Control && e.KeyCode == Keys.A) { e.SuppressKeyPress = true; //beep disabled ContentTextBox.SelectAll(); } }
private void Window_ContentRendered(object sender, EventArgs e) { ContentTextBox.SelectAll(); ContentTextBox.Focus(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { ContentTextBox.Text = Text; ContentTextBox.Focus(); ContentTextBox.SelectAll(); }