Command
Wisej.Web.Command
public class Command : ICommandPublic Class Command
Inherits ICommand
public 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
Command(execute, canExecute)
Name
Type
Description
Methods
CanExecute(args)
Parameter
Type
Description
Execute(args)
Parameter
Type
Description
RaiseCanExecuteChanged()
Events
CanExecuteChanged
Inherited By
Name
Description
Implements
Name
Description
Last updated
Was this helpful?

