共用方式為


ToolCommandBinding.Execute 事件

執行命令時發生。

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

語法

'宣告
Public Event Execute As ExecutedToolEventHandler
public event ExecutedToolEventHandler Execute
public:
 event ExecutedToolEventHandler^ Execute {
    void add (ExecutedToolEventHandler^ value);
    void remove (ExecutedToolEventHandler^ value);
}
member Execute : IEvent<ExecutedToolEventHandler,
    ExecutedToolEventArgs>
JScript 不支援事件。

.NET Framework 安全性

請參閱

參考

ToolCommandBinding 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

WPF 設計工具擴充性

工具架構