How do I bind to the latest version of the ReactiveCommand from my XAML page?
In ReactiveUI (6.5), The following command property declaration is no longer supported:
public ReactiveCommand ClickMe { get; private set; }
As a result, can a button declared within XAML still invoke a command on a view-model using the "Button.Command" property?
I tried the following:
public class InstructionsViewModel : ReactiveObject
{
public InstructionsViewModel()
{
Accept = ReactiveCommand.Create(x => Debug.WriteLine("Hello World"));
}
public ReactiveCommand<object> Accept { get; }
}
Cannot convert lambda expression to type 'IObservable' because it is not a delegate type