c# - Ctrl key press condition in WPF MouseLeftButtonDown event-handler -


How I can add additional position of keyboard keys, say, Ctrl-key position WPF MouseLeftButtonDown event-handler?

  private void Grid_MouseLeftButtonDown (object sender, MouseButtonEventArgs e) {...}  

  private void Grid_MouseLeftButtonDown (object sender, MouseButtonEventArgs e) {if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key. RightCtrl)) {MessageBox.Show ( "control key down "); } Other {message box. Show ( "control key"); }}  

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

excel - Populate list via a bi-Condition -