Share via


ToolGesture Constructor (ToolAction, MouseButton, ModifierKeys)

Initializes a new instance of the ToolGesture class.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    action As ToolAction, _
    button As MouseButton, _
    modifiers As ModifierKeys _
)
public ToolGesture(
    ToolAction action,
    MouseButton button,
    ModifierKeys modifiers
)
public:
ToolGesture(
    ToolAction action, 
    MouseButton button, 
    ModifierKeys modifiers
)
new : 
        action:ToolAction * 
        button:MouseButton * 
        modifiers:ModifierKeys -> ToolGesture
public function ToolGesture(
    action : ToolAction, 
    button : MouseButton, 
    modifiers : ModifierKeys
)

Parameters

  • button
    Type: System.Windows.Input.MouseButton
    Modifies the button states to only allow the specified button. For example, if you wanted to make a "Click" action only valid for the left mouse button, you would pass MouseButton.Left in this parameter. The default is to allow all buttons.
  • modifiers
    Type: System.Windows.Input.ModifierKeys
    The keyboard modifiers to use. By default, any keyboard modifiers are valid. You can restrict the set of valid modifiers by supplying them in this parameter.

.NET Framework Security

See Also

Reference

ToolGesture Class

ToolGesture Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility