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
- 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.
- 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
- 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