void textBoxMessage_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     Binding = new ControlBinding { MButton = e.ChangedButton, };
     DialogResult = true;
     Close();
     e.Handled = true;
 }
 private void MyPreviewKeyUp(object sender, KeyEventArgs e)
 {
     Binding = new ControlBinding { KeyboardKey = e.Key, };
     DialogResult = true;
     Close();
     e.Handled = true;
 }