Align Title in RadRibbonForm

2 posts, 0 answers
  1. Marco
    Marco avatar
    19 posts
    Member since:
    Oct 2011

    Posted 24 May 2012 Link to this post


    how can I align the title text of a RadRibbonForm to the left side?
    I use the default Office2010Black, Office2010Blue and Office2010Silver themes and the title
    is centered.

  2. Boryana
    Boryana avatar
    330 posts

    Posted 29 May 2012 Link to this post

    Hello Marco,

    Thank you for writing.

    The position of RadRibbonBar caption is calculated depending on various factors, such as contextual tabs and QuickAccessToolBar items. Having this in mind, the easiest way to align the caption to left is through setting the StretchHorizontally property of the RibbonBarCaptionLayoutPanel. Here is a sample snippet:
    RibbonBarCaptionLayoutPanel panel = this.radRibbonBar1.RibbonBarElement.RibbonCaption.FindDescendant<RibbonBarCaptionLayoutPanel>();
    panel.StretchHorizontally = false;

    I hope this helps. Let me know if you encounter further queries.

    Kind regards,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top