Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2370
Change RibbonGroup border and caption
posted

Is there a way to change the border to a dotted line instead of the solid line on the ribbon group style for Office2013 theme without overriding the whole template?

Also, I'd like to change the font and styling of the caption for a ribbon group as well. 

Thanks,

Jon

Parents
  • 405
    Verified Answer
    posted

    Hello Jon,

    Thank you for your post!

    I have been looking into it and have created small sample application for you. In the attached sample WPF application I have extracted the style for RibbonGroup from the Office2013 theme and have modified it to allow you to set custom styles for the caption text and the separator. This style is then applied to the ribbon groups in the main page.

    In the App.xaml file there are two styles that you can modify to have the look that you wish.
    - CaptionTextBlockStyle - controls the style of the caption text in the ribbon group
    - SeparatorLineStyle - controls the style of the XAML Line element that is used to display the dashed separator in the ribbon group

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    Sincerely,
    Lazar
    Software Developer
    Infragistics Inc.
    www.infragistics.com/support

    WpfApplication1.zip
Reply Children
No Data