2016-07-22 5 views

答えて

2

「応答性のあるもの」を意味する場合は、RowDefinitionsとColumnDefinitionsのサイズが「*」のグリッドを使用できます。

<Grid> <Grid.RowDefinitions> <RowDefinition Height="2*" /> <RowDefinition Height="*" /> <!-- this one below works the same as just '*' --> <RowDefinition /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="2*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions>

アスタリスクは、指定された行/列に「重み」を設定し、それは空間がグリッド上に残っているものは何でも満たします。

ここに詳細があります:How to Make a WPF Window Responsive

関連する問題