This is a migrated thread and some comments may be shown as answers.
Align Title in RadRibbonForm
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 24 May 2012, 07:42 AM
Hi,

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.

Regards
Marco

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 29 May 2012, 09:12 AM
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,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Asked by
Marco
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or