I'm new in WPF trying to use ReactiveUI, I have used ICommand
/ DelegateCommand
one time before, but now I want to use ReactiveCommand
What I'm trying to do is really simple. Click a button in the view, and have that execute a method apply in the view model. I have implemented as below but I'm getting error "cannot convert lambda expression to type system.Iobserver because it is not a delegate type"
private ReactiveCommand _applyCommand;
public ICommand ApplyCommand
{
get { return _applyCommand; }
}
void Bind()
{
_applyCommand = new ReactiveCommand();
_applyCommand.Subscribe(_ =>
{
Apply();
});
}
void Apply()
{
}