c# - One ViewModel for multiple views in wpf mvvm -
i'm working on wpf project mvvm pattern, have such scenario: window seperated 2 parts, first part simple, textbox users input keywords , button searching keyword. second part user control, default, it's advanced search user control, users can select different selections, such categories, authors, each of selection support multiple selection. after user setting filter in advanced search user control, click search button in first part search. after searching results return, replace advanced search user control result list user control.
should create viewmodel contains result collection, advanced search options , used main window , 2 user controls? or there more appropriate solution?
thanks in advance!
Comments
Post a Comment