Initializes a new instance of the
KeyStroke structure with the specified
System.Windows.Input.Key,
System.Windows.Input.ModifierKeys, and a value that indicates whether this
KeyStroke is active on the key release.
Syntax
'Declaration
Public Function New( _
ByVal As System.Windows.Input.Key, _
ByVal As System.Windows.Input.ModifierKeys, _
ByVal As System.Boolean _
)
'Usage
Dim keyCode As System.Windows.Input.Key
Dim modifiers As System.Windows.Input.ModifierKeys
Dim onKeyRelease As System.Boolean
Dim instance As New KeyStroke(keyCode, modifiers, onKeyRelease)
public KeyStroke(
System.Windows.Input.Key ,
System.Windows.Input.ModifierKeys ,
System.bool
)
Parameters
- keyCode
- The key code defined by this KeyStroke structure.
- modifiers
- The modifier keys defined by this KeyStroke structure.
- onKeyRelease
- A value that indicates whether the KeyStroke is active on the key release.
See Also