I am trying to use XamOutlookbar as a navigation control in my WPF app (MVVM). So when user clicks on the group content menu item (NOT the group), I need to be able to react to that event in my MVVM - like load appropriate view. I need to know which menu item the user clicked on in order to know which view to load. What is the best way to do this? If possible, without writing any code-behind since I am trying to decouple UI from the ViewModel. Thanks.
Hello Andre,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I added a Property in the ViewModel in order to track the Selecteditem by binding the SelectedItem of the ListBox that contains all items to the VM’s SelectedItem Property. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Stefan. thanks a lot, your sample works great and binds exactly the way that I need.