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
2732
Collapsed & NavigationPaneExpansionMode.None
posted

Hello,

I'm trying to achieve a specific behavior with the WinExplorerBar.
I'm trying to have the expanded state set to collapsed, and disallow the user to expand it at all. 

I'm using the following settings:
NavigationPaneExpansionMode set to None
NavigationPaneExpandedState to Collapsed
Handling the NavigationPaneFlyoutDisplaying event and cancelling the flyout.

The problem is that when I set the ExpansionMode to None, the ExpandedState is ignored and set to expanded. Even if I set the ExpandedState to Collapsed again after changing the ExpansionMode, it is ignored and just has the size as if it was collapsed, but showing the content.

See screenshot attached. It contains 2 WinExplorerBar, the left one is collapsed with the expansionmode set to default value, the right one is collapsed with expansionmode set to none. How can I get the right one to be displayed as the left one, while keeping the expansionmode to none ?

Kind regards,

Michael

Parents
  • 9298
    posted

    Michael,

    I would suggest that you handle the NavigationPaneExpanding event and cancel it rather than the NavigationPaneFlyoutDisplaying event.  If that does not work for you, then could you provide me with a simple sample application that demonstrates this issue you are describing?  I don't quite understand how the screenshot corresponds to what you have described.  I only see one WinExplorerBar in the picture and not two.  If you could give me a sample that I could work with then I will better understand the problem you are having.

Reply Children