
I have a feature in most of my apps that allows a person to switch between a (Bars) Ribbon and Menu navigation which toggles the visibility on either of those controls. This works as expected when the Ribbon is not collapsed. When the Ribbon is collapsed for space, clicking the Ribbon tab opens a popup (I think) of the that Ribbon tab (and when I select menu navigation from there on the Ribbon the Ribbon itself disappears as expected but the popup stays open until something else on the UI is clicked on).
I've tried setting `IsCollapsed` and `IsMinimized` to true. There is a `IsMinimizedPopupOpen` property but it's a got a private setter. As a workaround I used reflection to set that private setter on `IsMinimizedPopupOpen` which worked.
var propertyInfo = typeof(Ribbon).GetProperty("IsMinimizedPopupOpen", BindingFlags.Public | BindingFlags.Instance);
propertyInfo?.SetValue(win.Ribbon, false);
My question, is there a correct way to hide that bars Ribbon popup programatically or via XAML that I'm missing or should be using?
Thank you!
[Modified 6 months ago]