DesignerView.MatchGesture Event

Occurs when the DesignerView is matching a user input gesture to a command.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Event MatchGesture As EventHandler(Of MatchGestureEventArgs)
public event EventHandler<MatchGestureEventArgs> MatchGesture
public:
 event EventHandler<MatchGestureEventArgs^>^ MatchGesture {
    void add (EventHandler<MatchGestureEventArgs^>^ value);
    void remove (EventHandler<MatchGestureEventArgs^>^ value);
}
member MatchGesture : IEvent<EventHandler<MatchGestureEventArgs>,
    MatchGestureEventArgs>
JScript does not support events.

Remarks

In the event handler for this event, you can modify the command that will be executed. You can also modify the positional and other gesture information that will be passed to the command. If you set the input binding to nulla null reference (Nothing in Visual Basic), the command will not be executed.

.NET Framework Security

See Also

Reference

DesignerView Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture