共用方式為


CanExecuteToolEventArgs.CanExecute 屬性

取得或設定命令是否可以執行。

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

語法

'宣告
Public Property CanExecute As Boolean
    Get
    Set
public bool CanExecute { get; set; }
public:
property bool CanExecute {
    bool get ();
    void set (bool value);
}
member CanExecute : bool with get, set
function get CanExecute () : boolean
function set CanExecute (value : boolean)

屬性值

型別:System.Boolean
如果命令可以執行則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

CanExecuteToolEventArgs 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

WPF 設計工具擴充性

工具架構