一起学习Avalonia(十一)

继续扩展一下布局grid.

Grid

(1)基本

 <Grid RowDefinitions="100,100" ColumnDefinitions="100,100">
  </Grid>

行列定值大小。

(2)自动伸缩

<Grid RowDefinitions="Auto,100" ColumnDefinitions="Auto,100">
</Grid>

根据内部内容计算大小。

(3)比例

 <Grid RowDefinitions="Auto,*" ColumnDefinitions="Auto,*,4*,2*,3*">
  </Grid>

根据数字比例计算。

posted @ 2020-10-09 23:50  IT苦行僧  阅读(588)  评论(0编辑  收藏  举报