5 namespace SiliconStudio.Presentation.
Commands
31 public bool IsEnabled {
get {
return false; } set {
if (value ==
false)
throw new InvalidOperationException(
"The IsEnabled property of the DisabledCommand cannot be modified"); } }
34 public event EventHandler CanExecuteChanged
49 throw new InvalidOperationException(
"The DisabledCommand cannot be executed.");
55 throw new InvalidOperationException(
"The DisabledCommand cannot be executed.");
An interface representing an implementation of ICommand with additional properties.
bool CanExecute(object parameter)
void Execute()
Executes the command with a null parameter.
void Execute(object parameter)
This class represents a command that is always disabled and does nothing when executed.