共用方式為


CanExecuteRequestedEventArgs.CanExecute 屬性

定義

取得或設定值,指出引發此事件的 ICommand 是否能夠執行。

public:
 property bool CanExecute { bool get(); void set(bool value); };
bool CanExecute();

void CanExecute(bool value);
public bool CanExecute { get; set; }
var boolean = canExecuteRequestedEventArgs.canExecute;
canExecuteRequestedEventArgs.canExecute = boolean;
Public Property CanExecute As Boolean

屬性值

Boolean

bool

如果 ICommand 能夠執行,則為true;否則為false

適用於

另請參閱