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
- action
Type: Microsoft.Windows.Design.Interaction.ToolAction
The action to take.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace