This is a migrated thread and some comments may be shown as answers.

Adding Buttons to StartMenuBottomStrip on Ribbon Bar

1 Answer 64 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 26 Feb 2009, 04:44 PM
I'm trying to add an About button to the ribbon bar StartMenuBottomStrip.  I initially tried to add the button via the designer, but read the post that indicated that there was a bug using the designer so I'm doing this via code.  Prior to my adding my About button, there were two other buttons labeled Options and Exit.  The two existing buttons are right center justified.  I'd like my About button to appear to the left of the two existing buttons and at the same center height.  However, my About button appears to the left and ABOVE the other two buttons (right top justified).  I've tried setting the Justification property and others that sounded promising, but no luck.  I would have expected this to be trivial but I must not be setting the correct property or it's not working.  Any ideas?

Thanks,
Richard

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 27 Feb 2009, 02:18 PM
Hi Richard,

Thanks for contacting us.

I played with the RibbonBar a bit and I was able to reproduce the behavior.

In order to fix the location of the button, I used the following approach:

RadButtonElement buttonElement = new RadButtonElement("About"); 
buttonElement.MaxSize = new Size(50, 22);
buttonElement.PositionOffset = new SizeF(0, 1);
this.radRibbonBar1.StartMenuBottomStrip.Insert(0, buttonElement); 

I am using the MaxSize and PositionOffset properties of the RadButtonElement so that I can fine tune the location and size of my button.

Try using this workaround and do not hesitate to write back if you need further assistance.

Regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
RibbonBar
Asked by
Richard
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or