Command<T>
Wisej.Web.Command<T>
Last updated
Was this helpful?
Wisej.Web.Command<T>
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Implements the interface wrapping execute and canExecute actions.
You can use this class to wrap custom commands to bind to controls that implement the interface and need to access the typed data source records. In the snippet below, the CommandDemoViewModel class derives from BindingList<Customer> and allows the commands to directly interact with the typed property.
T
The Type of the data passed to the actions.
execute
canExecute
Defines a command that can be used for data binding.
Now you can use data binding or a code assignment to connect the view model's Add command to a button's property.