Command
Wisej.Web.Command
public class Command : ICommandPublic Class Command
Inherits ICommandpublic CommandDemoViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public int Number { ... }
public Wisej.Web.ICommand AddCommand { get; }
public CommandDemoViewModel()
{
this.AddCommand = new Command(args => this.Number++);
// Or
this.AddCommand = new Command(
execute: args => this.Number++,
canExecute: args => this.Number < 10
);
}
}Constructors
Command(execute, canExecute)
Name
Type
Description
Methods
CanExecute(args)
Parameter
Type
Description
ChangeCanExecute()
Execute(args)
Parameter
Type
Description
Events
CanExecuteChanged
Inherited By
Name
Description
Implements
Name
Description
Last updated
Was this helpful?

