Posted 12 years ago by FinallyInSeattle
I'm doing some proof of concepts for UX changes to our application. One of these involves dynamically adding Groups to a Tab when certain screens are displayed. The converse of this is when a screen is closed, the added Group gets its Visibility property set to Collapsed. I've noticed that, once the first screen is closed and the corresponding group is set to Visibility.Collapsed, subsequent groups that are added no longer appear with a VariantSize of Large even though there is plenty of room. It appears that the Ribbon is still using the collapsed group when doing its calculation of how to size the buttons. Is there a workaround for this?
- The VariantSize property of the dynamically-generated Groups is set to Large.
- The StackPanelItemVariantBehavior property of the StackPanels within these Groups is set to LargeThenMediumWhenMedium.