// </SnippetKeyDownHandlerKeyGestureMatches> // <SnippetKeyDownHandlerMouseGestureMatches> private void OnMouseDown(object sender, MouseEventArgs e) { MouseGesture mouseGesture = new MouseGesture(MouseAction.MiddleClick, ModifierKeys.Control); if (mouseGesture.Matches(null, e)) { MessageBox.Show("Trapped Mouse Gesture"); } }