Question

Ribbon window: Is there a way to add a control to the left of the minimize button?

Posted 9 months ago by Avatar Jessica Siu

Hello,

I have a requirement for adding a button to the left of the minimize button in the ribbon window. Is there a way to do this currently?


Comments (1)

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA

Hello,

One option would be to add a button to the Ribbon.TabPanelItems collection.  That won't put the button in the title bar but it will be in the same row as the Ribbon's tabs, on the right side.

If you absolutely need a title bar button, check out the Metro-Style Window demo in the Themes section.  That shows how a WindowChrome can be configured to show additional content there.  You can get the WindowChrome that RibbonWindow uses by calling WindowChrome.GetChrome(window) after the RibbonWindow has been initialized.  But note, that doing this might cause some layout problems with Ribbon like with contextual tab groups since I believe it's likely looking for a certain size of title bar button width there now.


Actipro Software Support
Information The latest build of this product (2018.1 build 0671) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.