4 Answers, 1 is accepted
0
Hi me,
Thank you for your interest in RadRibbonBar.
The RadRibbonBar is not designed to allow right-aligned RibbonBar chunks. The RadRibbonBar merely provides the best arrangement of the chunks from left to right for every possible size of the application window.
I hope this helps. If you have any other questions, please contact me.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for your interest in RadRibbonBar.
The RadRibbonBar is not designed to allow right-aligned RibbonBar chunks. The RadRibbonBar merely provides the best arrangement of the chunks from left to right for every possible size of the application window.
I hope this helps. If you have any other questions, please contact me.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
me
Top achievements
Rank 1
answered on 25 Jun 2008, 10:11 PM
Isn't there any workaround/hack to at least simulate the right to left alignment? like umm.. adding an invisible chunk to fill the space on the left?
0
Accepted
Hello,
There are two workarounds which I can suggest in order to make your chunks right-aligned. I would recommend using the second one:
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
There are two workarounds which I can suggest in order to make your chunks right-aligned. I would recommend using the second one:
- As per your proposal, you can add several chunks and set their Visibility property to Hidden. Please note that you should do it in the Form_Shown or at a later moment of your application cycle:
private void Form1_Shown(object sender, EventArgs e) { this.radRibbonBarChunk1.Visibility = Telerik.WinControls.ElementVisibility.Hidden; this.radRibbonBarChunk2.Visibility = Telerik.WinControls.ElementVisibility.Hidden; } - RadRibbonBarChunks are hold by a StackLayoutPanel. You should set its Alignment property to TopRight:
((StackLayoutPanel)this.radRibbonBarChunk1.Parent).Alignment = ContentAlignment.TopRight;
If you have additional questions, feel free to contact me.
All the best,
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
me
Top achievements
Rank 1
answered on 27 Jun 2008, 12:23 AM
Worked like a charm.. you're the best :)