Wisej.Web.Command
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Implements the ICommand interface wrapping execute and canExecute actions.
You can use this class and Command to wrap custom commands to bind to controls that implement the ICommandSource interface. A view model class can expose as many commands as you like. You can bind (or assign) a command to the Command property (see Command for example).
Now you can use data binding or a code assignment to connect the view model's Add command to a button's Command property.
Initializes a new Command wrapping am execute method and an canExecute method.
execute
canExecute
Initializes a new Command wrapping am execute method and an canExecute method.
execute
canExecute
Executes a method that determines whether the command can execute in its current state.
args
Returns: Boolean. true if this command can be executed; otherwise, false.
Executes the command method.
args
Fires the CanExecuteChanged event.
EventHandler Fired when the result of the CanExecute method changes.
Defines a command that can be used for data binding.
Invoked by the to perform a command.
Invoked by the to determine whether it can execute the execute function.
Invoked by the to perform a command.
Invoked by the to determine whether it can execute the execute function.
A that contains data that can be used by the command.
A that contains data that can be used by the command.
Implements the interface wrapping execute and canExecute actions.