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 不支持事件。

备注

在该事件的事件处理程序中,可以修改将执行的命令。 还可以修改将传递给该命令的位置和其他笔势信息。 如果将输入绑定设置为 nulla null reference (Nothing in Visual Basic),将不会执行命令。

.NET Framework 安全性

请参见

参考

DesignerView 类

Microsoft.Windows.Design.Interaction 命名空间

AdornerPanel

其他资源

演练:创建设计时装饰器

装饰器体系结构