Share via


ToolGesture Constructor (ToolAction, MouseButton)

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 _
)
public ToolGesture(
    ToolAction action,
    MouseButton button
)
public:
ToolGesture(
    ToolAction action, 
    MouseButton button
)
new : 
        action:ToolAction * 
        button:MouseButton -> ToolGesture
public function ToolGesture(
    action : ToolAction, 
    button : MouseButton
)

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.

.NET Framework Security

See Also

Reference

ToolGesture Class

ToolGesture Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility