Command<T>
Wisej.Web.Command<T>
public class Command<T> : CommandPublic Class Command(Of T)
Inherits Commandpublic CommandDemoViewModel : BindingList<Person>
{
public Wisej.Web.ICommand SaveCommand { get; }
public CommandDemoViewModel()
{
this.SaveCommand = new Command<Person>(
execute: args => {
DB.Save(args.DataItem);
},
canExecute: args => {
return args.DataItem.Name != null &&
args.DataItem.Age > 0;
});
}
}Parameters
Name
Description
Constructors
Command(execute, canExecute)
Name
Type
Description
Implements
Name
Description
Last updated
Was this helpful?

