protected override void OnActivated(EventArgs e)
 {
     base.OnActivated(e);
     MainTextbox.Focus();
     MainTextbox.SelectAll();
 }
 private void CopyClicked(object sender, RoutedEventArgs e)
 {
     MainTextbox.SelectAll();
     MainTextbox.Copy();
 }