I have a complex query interface that I need to be passed on via a RelayCommand to my Model. This consists of some comboboxes, checkboxes and text inputs.
I can easily pass on a single commandparameter (i.e. RelayCommand, etc), but how would I encapsulate the commands, should it be RelayCommand,, etc. This seems a little excessive.
Any hints would be greatly appreciated
Thanks
Acceptable solution is to bind all your comboboxes, checkboxes and text inputs to particular properties of your view model and then use props values in your RelayCommand handler instead of passing data as CommandParameter.
Here is an example:
Your XAML:
Your ViewModel.cs: