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
430
Programatically Show Selected Group Popup
posted

Our implementation of the XamOutlookBar stays minimized most of the time. Whenever the user changes the selected group they have to click on the Navigation Pane to view the popup for that group. While it is operating as designed, we would like to eliminate the extra click and show the selected group popup when the user changes the group. 

The SelectedGroupChanged event looks to be the solution to our problem, but how do we get it so that it shows the popup for that group?  Can we manually force it to display or trick the Navigation Pane into thinking it was clicked?

A separate but related question: Can we programmatically expand/collapse the navigation pane as well -- as if the arrow at the top were clicked? Not sure if that's desired yet, but I'd like to also have that option available.

Parents
No Data
Reply
  • 22015
    Verified Answer
    posted

    Hello Kristopher,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application for you. In the sample application I have handled the SelectedGroupChanged event and the Loaded event of the XamOutlookBar. On the Loaded event I simply set a flag to know when to open the Popup with content.

    On the SelectedGroupChanged event I call the ShowPopupCommand of the XamOutlookBar commands.

     

    Regarding your second question - you can set the IsMinimized property of the XamOutlookBar to true/false in order to collapse/open the NavigationPane. I have implemented this functionality on a button click for you.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    Outlookbar_ShowContentPopup.zip
Children