private void ButtonClick(object sender, RoutedEventArgs e) { if (_textBox != null) { _textBox.Text = ""; _textBox.Focus(); } } }