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 -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -