docxx
docxx

Reputation: 93

menu does't resize with window

my menu looks now like that:

Image1

Image2

wh ymenu doesnt resize with window? how can i fix it?

edit:

https://i.sstatic.net/GgCzY.png

Upvotes: 1

Views: 1178

Answers (2)

Ben Reed
Ben Reed

Reputation: 874

I normally just use the Dock Property. Check out MSDN Control.Dock Property documentation. Also, make sure your Menu bar belongs to the window and not another container. It works for me. I hope this helps.

Upvotes: 1

punker76
punker76

Reputation: 14611

here is a simple example

<Grid>
  <Grid.RowDefinitions>
     <RowDefinition Height="Auto"/>
     <RowDefinition/>
  </Grid.RowDefinitions>
  <Menu Grid.Row="0">
     <MenuItem Header="File"/>
     <MenuItem Header="Another"/>
  </Menu>
  <Grid x:Name="contentGrid" Grid.Row="1">
  </Grid>
</Grid>

enter image description here

hope this helps

Upvotes: 2

Related Questions