Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
israelKusayev opened this issue Nov 11, 2018 · 1 comment

Comments

@israelKusayev
Copy link

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

@israelKusayev israelKusayev changed the title how can i change viewModel dynamically if i have two viewModel for each user control how can i change viewModel dynamically if i have two viewModels for each user control Nov 11, 2018
@israelKusayev israelKusayev changed the title how can i change viewModel dynamically if i have two viewModels for each user control how can i change viewModel dynamically if i have one viewModels for each user control Nov 11, 2018
@MeshackMusundi
Copy link
Owner

MeshackMusundi commented Nov 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants