I'm creating a customer search screen in WPF, trying to follow the MVVM pattern. My scenario is I have three possible search options at present:Customer surname; Customer Reference no; Customer with follow up due in x number days.
I have a grid with 3 rows, one for each search available. A radio button for each to identify which search user wants to perform and a button. I am going to add commands to my view model for each but in XAML how would I set correct command and pass correct parameter to the command? Only way I can think is 3 buttons and collapse the two non applicable???????? This sounds a sweaty hack....
Anyone point me to correct method?
Thanks