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
520
Increasing the size of an icon in ButtonTool
posted

Hi.

I'm using the ButtonTool in XamRibbon. I'd like to have some button with larger appearance than others. For this I've tried to increase the buttons height but found out the buttons image and content do not increase respectively. Is there a way in which I'd be able to increase my icons?

 

Thanks,

 

Izhar Lotem

Parents
  • 54937
    Verified Answer
    Offline posted

    Just as with Office, the images of the tools are either small (16x16 in our default templates) or large (32x32) in our default templates. A ButtonTool on a RibbonGroup will use the small image whenever its SizingMode is ImageOnly or ImageAndTextNormal and will use the large image size when its SizingMode is ImageAndTextLarge. By default the attached property RibbonGroup.MaximumSize is ImageAndTextNormal for a ButtonTool. If you want it to be large you can set this property to ImageAndTextLarge. If you don't want the resizing logic to reduce the size of the tool when there isn't enough room you would set the RibbonGroup.MinimumSize attached property to ImageAndTextLarge. If you want to use sizes other than our defaults then you would need to retemplate the elements. You can use the default styles we ship with the  product (located in the DefaultStyles directory) as the starting point for your custom templates.

Reply Children