I can create a command like this which checks for some property of my view model if it can execute:
AddNewSectionCommand = ReactiveCommand
.CreateFromTask(() => AddNewSectionAsync(NewSectionTitle),
this.WhenAny(x => x.NewSectionTitle, x => !string.IsNullOrWhiteSpace(x.Value)));
Is it also possible to do this for the CommandParameter
I pass in via WPF, and if, how? Because sometimes I directly want to use something in the UI as the parameter for a command but also want to check validity before. Until now, I have to do this by binding the value to a view model property and use the above which clutters my view models with a lot of superfluous stuff.