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
85
Customizing the ribbon buttons
posted

Hello!

Is there a possibility to customize the ribbons igRibbon:ButtonTool.

I'd like to change e.g. the hover boder to 2px without any radius. I had a look at the theme Xaml files to override the whole control but I'm not sure this is supported or these styles are included.

Thanks,

Wolfgang

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    This post describes how the ButtonTool is styled. The RibbonButtonChrome that does the rendering for the tool doesn't expose a way to control the thickness of the borders but you can disable the rounding by setting its UseRoundedCorners to false. Note this will turn off the rounding for all states (e.g. checked, hover, etc.). This property was added in 12.1 as it was needed for the Metro themes. If you wanted to set this then you would need to copy the default styles provided with the product and use those modified resource dictionaries.

Children
No Data