Reputation: 93
my menu looks now like that:
wh ymenu doesnt resize with window? how can i fix it?
edit:
https://i.sstatic.net/GgCzY.png
Upvotes: 1
Views: 1178
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
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>
hope this helps
Upvotes: 2