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

Menu bar is only as big as its content ?

2 Answers 21 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 01 Aug 2011, 06:46 PM

What is the property that controls the width of the Menu bar ?

This what I have:
  

<DockPanel>
     <k:Menu DockPanel.Dock="Top"  >
         <k:AddMenuItem Command="{Binding Path=CommandAdd}" />

But the Menu bar is only as wide as the menu items in it...  (?)

Thanks,

2 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 02 Aug 2011, 08:26 AM
Hello Michel,

If you wish to stretch RadMenu horizontally regardless of the number of items it contains, you can simply set the HorizontalAlignment="Stretch" property.

I hope this will give you a solution.

Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Michel
Top achievements
Rank 1
answered on 02 Aug 2011, 01:37 PM
Aah ! Works perfectly of course.

So simple, yet not easy to find in the scarse documentation...

Thanks !
Tags
Menu
Asked by
Michel
Top achievements
Rank 1
Answers by
Dani
Telerik team
Michel
Top achievements
Rank 1
Share this question
or