MeshackMusundi / SignalChat

WPF-MVVM instant messaging application using SignalR
MIT License
259 stars 95 forks source link

how can i change viewModel dynamically if i have one viewModels for each user control #5

Open israelKusayev opened 5 years ago

israelKusayev commented 5 years ago

and by the way, you did a great job, i'm learning a lot from you. thank you!

MeshackMusundi commented 5 years ago

Hi, thanks for the compliment. Regarding your query, I think you're referring to a case where each user control has a different view model? In that case you could set the DataContext of each user control with the relevant view model.