共用方式為


CanExecuteToolEventHandler 委派

表示將會處理工具命令之 CanExecute 事件的方法。

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

語法

'宣告
Public Delegate Sub CanExecuteToolEventHandler ( _
    sender As Object, _
    e As CanExecuteToolEventArgs _
)
public delegate void CanExecuteToolEventHandler(
    Object sender,
    CanExecuteToolEventArgs e
)
public delegate void CanExecuteToolEventHandler(
    Object^ sender, 
    CanExecuteToolEventArgs^ e
)
type CanExecuteToolEventHandler = 
    delegate of 
        sender:Object * 
        e:CanExecuteToolEventArgs -> unit
JScript 不支援委派。

參數

請參閱

參考

Microsoft.Windows.Design.Interaction 命名空間

其他資源

WPF 設計工具擴充性

工具架構