我觉得问这个问题很蠢,但是我该如何设置网格以使用我的wpf页面的整个空间?我似乎无法将其高度设置为“*”,我希望它能够填充整个“DesignHeight/Width”当我更改它们。谢谢!
<Page x:Class="Aud10.MenuHome"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" Title="MenuHome" d:DesignHeight="860" d:DesignWidth="1196">
<Grid Height="860" Width="1196">
<Grid.RowDefinitions>
<RowDefinition Height="0.5*" />
<RowDefinition Height="0.5*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.333*" />
<ColumnDefinition Width="0.333*" />
<ColumnDefinition Width="0.333*" />
</Grid.ColumnDefinitions>
</Grid>
</Page>