Hi everyone,
I am adding buttons programmatically to the ribbon. And adding them to the different button groups. I don't have problem till here.
But my problem is, I could not find the property to resize the buttongroups. I should have my bottons as shown below
Login
User1 User Type
User2
Login Page
In the above figure, Login Page is the Group Name and the Login, User1 and User2 belong to the same buttongroup and User Type is another buttongroup. All the buttongroups are present in the Login Page group.
What i wanted is that the User Type should occupy the whole space and should like a big button.
But what i able to get is shown below, User Type as a small button on the top of the second column.
Login User Type
User1
Can anyone help to achieve this feature.
Thanks in advance
Navi
It sounds like it should work. If you post the snippet of code where you add the tool, I might be able to help.
Hi,
I am also trying to trying to add buttons to groups programatically.
I am setting both the InstanceProps.PreferredSizeOnRibbon to Large and the InstanceProps.MinimumSizeOnRibbon to Large but I cannot get the buttons to display as large.
Am I missing something obvious?
Hi Mike
It worked perfectly as i wanted.
Thank you very much.
I don't believe large tools can be used in a button group. Remove the tool from the button group and set it's InstanceProps.PreferredSizeOnRibbon to Large. Also, it is a little difficult to fully understand the problem with the textual representation of the ribbon group. If I have misinterpreted what you are asking, please attach an image to your reply so I can better understand the problem.