Adding own controls on a RibbonTab

Ribbon for WPF Forum

Posted 10 years ago by Stephan Blaurock
Version: 4.5.0480
Avatar
Hello,

is it possible to add my own control to the RibbonTab?
(not in the group-area! In the Tab-Area near to the Tab-Text)
I would like to display 2 icons, a text and a button.

Thanks!

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Stephan,

Sure, our main demo shows how a help button can be added to the area to the right of the tabs but at the same vertical location as the tabs. You can add any controls there that you wish.

To do this, just add the controls to the Ribbon.TabPanelItems collection like:
<ribbon:Ribbon.TabPanelItems>
    <ribbon:Button KeyTipAccessText="Z" Command="ApplicationCommands.Help" />
</ribbon:Ribbon.TabPanelItems>


Actipro Software Support

Posted 10 years ago by Stephan Blaurock
Avatar
Thanks for your answer!
But i need to add controls to the tab-item itself. E.g. a icon before the tab-caption, and a button after...

Thanks!
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Stephan,

Ahh unfortunately the Ribbon tabs don't support that since they have very strict specifications on how they have to resize per the Microsoft Ribbon UI guidelines.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.