Hi,
I notice there is an OutlookBarCommands.ShowPopupCommand, but was looking to do the opposite.
In MS Outlook, when the NavigationPane is collapsed, you can click on the collapsed bar, to show the active group in a popup. If you do this whilst viewing mail items, then click on a different folder in the popup, the main display gets filtered by the selected folder AND the popup automatically collapses again.
Is there any way to achieve this currently? Or would this have to be added as a new feature? (I am using an old version 10.2.20102.2045 - appologies if this has been implemented since).
Regards,
Dave
The workaround to achieve the above is to find the descendant popup of the XamOutlookBar and set its IsOpen property to False, like so:
popup.IsOpen =
False
Oh, that's a shame :( I was hoping there may be a workaround but I've just had a play with overriding the SelectedGroupContent template and can't immediately spot any way to achieve what I'm looking for.
In Microsoft Outlook, they have a TreeView in the Mail content group and a list of radio buttons in the Contacts and Tasks groups - both list type controls that do collapse the popup on selection change. I can't imagine an OutlookBarGroup containing just TextBlocks would be of much use to anyone!
I'll therefore raise a support case for this as I believe it is more a case of missing functionality rather than a new feature request.
Cheers,
Seems like when there is a Control inside the OutlookBarGroup Content displayed in the popup and you interact with it is different than this done with a TextBlock.
So, unless you click outside the popup it stays open and currently we do not provide option to programmatically close the popup.
HTH,
Hi Stoimen,
Sure - we are placing a View in the content, comprising a ListBox. The SelectedItem of the ListBox is bound to a ViewModel property. When this property value is set (i.e. the ListBox selection changes), code is executed that opens up the correct document in the UI. This works great and looks like this:
However when the OutlookBar is collapsed, changing the selection in the ListBox does correctly open the new document, but does not collapse the group - not that I really expected it to. I had expected to find a method/property/command that would let me do this in code though.
I tested your scenario, placed a TextBlock in the Group's content and when the popup was opened and I clicked the text from the TextBlock the popup was hidden - the OutlookBar seems to be doing that out of the box. Isn't that working for your case? Can you provide more information about what you have in your OutlookBarGroup Content?
Thanks,