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
865
Resize the button in Ribbons
posted

Hi,

I am adding buttons to the ribbon but i can not find a property to change the height and width of the button. it keeps its default size. Can you help please?

thanks,

Kamal

Parents
No Data
Reply
  • 44743
    posted

    Both the height and width of ButtonTools are based on the content. You can make the ButtonTool into a large tool which spans the height of the RibbonGroup by setting its InstanceProps.MinimumSizeOnRibbon or InstanceProps.PreferredSizeOnRibbon to Large.  However, the width cannot be modified for ButtonTools. There are some properties which can have their InstanceProps.Width property set, but the ButtonTool is not one of them. I believe only editor tools, LabelTools, and ControlContainerTools can have their width set.

Children