Gets or sets the modifier keys associated with this MouseGesture.
Assembly: PresentationCore (in PresentationCore.dll)
ModifierKeys is a bit field enumeration, so it is possible for multiple modifier keys to be pressed at the same time. Use bit operations to determine the exact set of modifier keys pressed.
Dim OpenCmdMouseGesture As New MouseGesture() OpenCmdMouseGesture.MouseAction = MouseAction.WheelClick OpenCmdMouseGesture.Modifiers = ModifierKeys.Control Dim OpenCmdMouseBinding As New MouseBinding() OpenCmdMouseBinding.Gesture = OpenCmdMouseGesture OpenCmdMouseBinding.Command = ApplicationCommands.Open Me.InputBindings.Add(OpenCmdMouseBinding)
Available since 3.0