次の方法で共有


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 デザイナーの機能拡張

ツール アーキテクチャ