共用方式為


DesignerView.MatchGesture 事件

會在 DesignerView 要比對使用者輸入筆勢與命令時發生。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
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 不支援事件。

備註

在這個事件的事件處理常式中,您可以修改即將執行的命令, 也可以修改即將傳遞至這個命令的位置和其他筆勢資訊。 如果您將輸入繫結設定為 nullNull 參照 (即 Visual Basic 中的 Nothing),命令就不會執行。

.NET Framework 安全性

請參閱

參考

DesignerView 類別

Microsoft.Windows.Design.Interaction 命名空間

AdornerPanel

其他資源

逐步解說:建立設計階段裝飾項

裝飾項架構