Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:21:13+00:00 2026-06-02T19:21:13+00:00

If my window gets re-sized, the menu control re-sizes with it. And it looks

  • 0

If my window gets re-sized, the menu control re-sizes with it. And it looks very nasty when that happens. How can I prevent this? I’m looking for a property called ‘re size’ but there isn’t any.

[Edit]

<Menu Canvas.Left="0" Canvas.Top="0" Name="menu1" Margin="0,0,0,384">
    <MenuItem Header="File" StaysOpenOnClick="True" FontFamily="Arial" VerticalAlignment="Center">
        <MenuItem Click="Open_Click" IsEnabled="True">
            <MenuItem.Header>
                <TextBlock Text="Open" VerticalAlignment="Center"/>
            </MenuItem.Header>
        </MenuItem>
    </MenuItem>
    </Menu>

[/Edit]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:21:13+00:00Added an answer on June 2, 2026 at 7:21 pm

    That is because of Margin Property. Just remove it and set VerticalAlignment="Top" for Menu.

    Margin="0,0,0,384" means that there are 384 units of length between Menu and bottom bound of Menu’s visual parent. Thus it means that Menu height is dependent on it’s visual parent height, which is dependent on window height in your case.

    Specifying VerticalAlignment="Top" will lead to the following: Menu will be situated as high as possible in visual parent bounds and will have as small height as it possible to fit it’s contents: “File” text in your case. If you think that’s too small you can do 2 things: specify Height for Menu or, which is much more sensible, specify Padding for Menu. One would prefer specifying Padding because it will guarantee that Menu height will be enough to fit contents, no matter what FontSize or FontFamily etc. will be the MenuItem text.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While clicking outside modal window(iframe), it gets closed that's not suitable for forms etc..
This is how the site looks with the window in full size: This is
This is my code that fires whenever the window is resized: $(window).resize(function() { setDisplayBoardSize();
If I want to use the mouse to scroll the window when it gets
Is there an event in WinForms that get's fired when a window is dragged?
A window has a Grid with two columns. The left column contains a control
Windows Phone 7.5 app. Designer has created Home.xaml in Blend that has 3 images(menu
Good afternoon is there anyone who noticed that Find and Replace window each time
I am developing a Qt application that can play the videos and shows some
I was wondering whether the following can be easily implemented in OpenGL: divide window

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.