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
At design-time, select the toolbars manager. Then click the tool you would like ot set properties on (it shuold get a thick black border). Then, on the property grid's header, click the button to the right of the properties and events buttons to show properties of the selected object. There you can expand the InstanceProps property and set MinimumSizeOnRibbon and/or PreferredSizeOnRibbon.
thanks for your reply. I am sorry to be a pain but i could not find the property in the property panel. Would you have an example please?
Thanks.
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.