I have implemented the navigation service of WPF to navigate from a view to another. I do this by using the ViewModelLocator that is responsible to navigate from a view to another each time it receives the proper "Galasoft Messenger".
All right.
Now, having a lot of Views-ViewModels couples, I decided to create an user control that is shared (included in XAML) in some views. This UserControl has its own ViewModel and some property to set its appearence depending by the View is currently shown.
How I can access the property of the ViewModel of the UserControl from the View currently shown (that has inside the user control)?
And more, how (and where) I can determine the view currently shown?
I can post some code to help if needed, but I guess the answer is short and simple but I somehow missed something...
Thank you.
L