ToolGesture.Matches Method
Returns a value indicating whether this gesture matches an input event.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Overrides Function Matches ( _
targetElement As Object, _
inputEventArgs As InputEventArgs _
) As Boolean
public override bool Matches(
Object targetElement,
InputEventArgs inputEventArgs
)
public:
virtual bool Matches(
Object^ targetElement,
InputEventArgs^ inputEventArgs
) override
abstract Matches :
targetElement:Object *
inputEventArgs:InputEventArgs -> bool
override Matches :
targetElement:Object *
inputEventArgs:InputEventArgs -> bool
public override function Matches(
targetElement : Object,
inputEventArgs : InputEventArgs
) : boolean
Parameters
- targetElement
Type: System.Object
The target element for this gesture.
- inputEventArgs
Type: System.Windows.Input.InputEventArgs
The input event to compare with this gesture.
Return Value
Type: System.Boolean
true if this gesture matches the input event; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | inputEventArgs is nulla null reference (Nothing in Visual Basic). |
.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