Hello!
Is there a way to show the caption of the ribbon even if it's not placed inside a ribbon window?
We customized the window chrome, so it was not possible to use the original RibbonWindow.I've already checked the API but could not find a property to set. Maybe there is a way of providing our own RibbonControl inheriting the XamRibbon and override some default behaviour?
As there is no header in our chrome, the caption placement according to the QAT, RibbonContextualTabs, .. is what I really need.
Thanks in advance,
Wolfgang
I thought of customizing or configure the RibbonCaptionPanel which seems to handle the Caption as well, not the whole control
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the QuickAccessToolbar and added a Label to its Template in order to add Title there. I used Grid to place the Title, but you can change the Panel based on your requirements. Please let us know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Hi!
So this is quite the same idea I came up with before recognizing that even if I reorganize my whole styles I will loose support for contextual tabs.
Am I missing something obvious?
Thanks,
Hello Wolfgang,
I modified the sample, so now it works as you want. Both Contextual tabs and Title are shown. Please let me know if this helps you or you need further assistance on this matter.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thanks for the request.
I wasn't able to do this in xaml, so I wrote a custom RibbonCaptionPanel because I neede a solution for this asap.
I couldn't find out how to get the contextual tabs offset and width to bind them to my layout grid. The caption was right in the center of my header, but overflowing other controls an resize.
Another reason was, that I'm currently working on the styles only.. providning a theme without changing the application code (even not the vies).
But.. I know there will be some questions on my implementation and so I would really know if it's possible to realize the default ribbonWindowHeader functionality in custom styles. I thought there was a good reason why you did the implementation of the item-positioning in code yourself.
best regards,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well. Also I can say that you can see the default Style of the controls here by default:
C:\Program Files (x86)\Infragistics\2013.2\WPF\DefaultStyles