Share via


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.

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

See Also

Reference

ToolGesture Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility