How can I do this equivalently with ReactiveUI commands? And there especially deal with the IObservable equivalent CanExecute?
private readonly bool enableEdit = ctor-param;
this.AddIdCommand = new DelegateCommand(AddIdExecute, ()=>enableEdit);
How can I do this equivalently with ReactiveUI commands? And there especially deal with the IObservable equivalent CanExecute?
private readonly bool enableEdit = ctor-param;
this.AddIdCommand = new DelegateCommand(AddIdExecute, ()=>enableEdit);
If it is that static in value, do it like so:
this.AddIdCommand = ReactiveCommand.Create(AddIdExecute, Observable.Return(enableEdit));