0

我必须设计这样的东西:

在此处输入图像描述

我应该使用网格(2 行,2 列),还是应该使用带有按钮 1 的水平 StackPanel 和带有按钮 2 和 3 的另一个垂直 StackPanel。

特别是 - 为什么我应该使用每个选项。

4

2 回答 2

1

You should consider your layout panel based on the following contexts:

Moving, Alignment, Resizing, and Docking.

If you use a WrapPanel for example, you will notice that when resizing the window, the button's will maintain their original size and stack on top of each other to fit to the window size, while in a Grid they will change their size to maintain their current location.

I suggest you to test your options by the mentioned ciritia's and choose what best fits your requierments.

于 2013-10-20T08:22:22.487 回答
0

如果您在网格中的项目具有相同的大小,您可以使用

<UniformGrid></UniformGrid>
于 2013-10-20T08:31:47.757 回答