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 8548407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:29:18+00:00 2026-06-11T13:29:18+00:00

How can I make the menu bar in the WPF Application’s xaml file to

  • 0

How can I make the menu bar in the WPF Application’s xaml file to resize itself automatically if I maximize or minimize the window?

Here is the code:

<Window x:Class="Interface.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Physiosoft" Height="750" Width="1100">
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
        <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <Menu Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" Height="23" HorizontalAlignment="Left" Name="menu1" VerticalAlignment="Top" Width="1088" MinHeight="23" MinWidth="1088">
        <MenuItem Header="File">
            <MenuItem Header="Save                     Ctrl + S" />
        </MenuItem>
        <MenuItem Header="Help">
            <MenuItem Header="About Physiosoft                                F1" />
        </MenuItem>
    </Menu>
</Grid>

  • 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-11T13:29:20+00:00Added an answer on June 11, 2026 at 1:29 pm

    Either use it inside a DockPanel with its property of docking to fill (by, precisely not setting it) or within a Grid column/row whose width/height is set to * so it will auto resize to the available space.

    This, as example, will create a three column layout with a main panel and a resizable menu, use it as an start point:

    <Window x:Class="Interface.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Physiosoft" Height="750" Width="1100">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Menu Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1"  Name="menu1">
            <MenuItem Header="File">
                <MenuItem Header="Save                     Ctrl + S" />
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Header="About Physiosoft                                F1" />
            </MenuItem>
        </Menu>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a css script for make jquery menu bar.. i want it can
I want to make my application as menu bar app and I made it
How can I make a Menu Extra like the Battery Meter in Cocoa? I
I'm trying to make a drop down menu using javascript/jquery but can't get my
I have a menu working fairly well but can't figure out how to make
I can make my program write a .dat file with an array of Node
How can make a link within a facebox window that redirects it to another
I can make batch or vbs file on windows and run. this can automate
I am trying to make a menu bar for my website, I've got an
I have WPF window that uses a dockpanel and the menu control. I have

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.