Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Menu bar is only as big as its content ?

Not answered Menu bar is only as big as its content ?

Feed from this thread
  • Michel avatar

    Posted on Aug 1, 2011 (permalink)

    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,

    Reply

  • Dani Dani admin's avatar

    Posted on Aug 2, 2011 (permalink)

    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 >>

    Reply

  • Michel avatar

    Posted on Aug 2, 2011 (permalink)

    Aah ! Works perfectly of course.

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

    Thanks !

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Menu bar is only as big as its content ?