Menu bar is only as big as its content ?

3 posts, 0 answers
  1. Michel
    Michel avatar
    39 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    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. Dani
    Admin
    Dani avatar
    848 posts

    Posted 02 Aug 2011 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michel
    Michel avatar
    39 posts
    Member since:
    Jul 2011

    Posted 02 Aug 2011 Link to this post

    Aah ! Works perfectly of course.

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

    Thanks !
Back to Top