My Master page (NavigationDrawer) contains a ListView of items that are bound to the DataContext.Navigation collection.
That collection has a flag bool IsCompleted;
.
I need to update that flag from fairly deep within the app. The way I see it, there is three ways to achieve the task
- Use a messenger to signal back to the MainPage that the ViewModel has been updated
- Expose the DataContext as a public static
- Inject the DataContext all the way up the object graph until it reaches the command object
What is the preferred way to update the Master DataContext?