我正在使用来自MVVM Foundation的 SampleModel 项目。为什么在声明为时ICommand
返回。我知道继承但不会更清楚只返回 a吗?_decrementCommand
RelayCommand
RelayCommand
ICommand
RelayCommand
public ICommand DecrementCommand {
get { return _decrementCommand ?? (_decrementCommand = new RelayCommand(() => --this.Value)); }
}
RelayCommand _decrementCommand;