Adding Buttons to StartMenuBottomStrip on Ribbon Bar

2 posts, 0 answers
  1. Richard
    Richard avatar
    10 posts
    Member since:
    Dec 2007

    Posted 26 Feb 2009 Link to this post

    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?

  2. Deyan
    Deyan avatar
    2147 posts

    Posted 27 Feb 2009 Link to this post

    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.

    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.
Back to Top