메소드 | 설명 | |
---|---|---|
CanExecute ( object parameter ) : bool |
Determines whether this command can execute. If there is no delegate to determine whether the command can execute, this method will return |
|
DelegateCommand ( Action |
Constructs an instance of This constructor creates the command without a delegate for determining whether the command can execute. Therefore, the command will always be eligible for execution. |
|
DelegateCommand ( Action |
Constructs an instance of
|
|
Execute ( object parameter ) : void |
Executes this command. This method invokes the provided delegate to execute the command. |
public CanExecute ( object parameter ) : bool | ||
parameter | object | /// The command parameter. /// |
리턴 | bool |
public DelegateCommand ( Action |
||
execute | Action |
/// The delegate to invoke when the command is executed. /// |
리턴 | System |
public DelegateCommand ( Action |
||
execute | Action |
/// The delegate to invoke when the command is executed. /// |
canExecute | Predicate |
/// The delegate to invoke to determine whether the command can execute. /// |
리턴 | System |
public Execute ( object parameter ) : void | ||
parameter | object | /// The command parameter. /// |
리턴 | void |