Dynamically adding Groups and the resulting VariantSize

Ribbon for WPF Forum

Posted 15 years ago by FinallyInSeattle
Version: 9.1.0503
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.

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
For things like this, please ZIP up a simple sample project that shows the issue and email it over to us. This way we can see it happening and debug what the problem is. Then we can verify our changes fix the issue using your sample. Thanks!

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.