Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1915
Get clicked XamOutlookBar menu item
posted

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.

Parents
  • 138253
    Verified Answer
    Offline posted

    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.

    XamOutlookBarSelectedItem.zip
Reply Children