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

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

適用於

另請參閱