gpt4 book ai didi

c# - 合并网格列

转载 作者:可可西里 更新时间:2023-11-01 08:50:53 26 4
gpt4 key购买 nike

您好,我一直在寻找没有成功的解决方案...

我想要一个类似这样的网格:

+-------+----------------+
| | |
+-------+----------------+
| |
| |
| |
+-------+----------------+
| | |
+-------+----------------+

提前致谢!

最佳答案

它看起来像一个 3 行 2 列的网格,大小成比例:

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>
</Grid>

5 个单元格如下:

  • 左上角:Grid.Column="0", Grid.Row="0"
  • 右上角:Grid.Column="1", Grid.Row="0"
  • 居中:Grid.Column="0", Grid.Row="1", Grid.ColumnSpan="2"
  • 左下:Grid.Column="0", Grid.Row="2"
  • 右下:Grid.Column="1", Grid.Row="2"

关于c# - 合并网格列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23789647/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com