2016-07-22 3 views

답변

2

"반응 형"을 의미하는 경우 RowDefinitions 및 ColumnDefinitions가 있고 그 크기가 "*"인 Grid를 사용할 수 있습니다.

<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

관련 문제