win8应用程序中的流布局容器

时间:2012-08-28 08:34:39

标签: c# xaml layout windows-8 stackpanel

我在GridView内部有一些项目,我希望它们位于:

<-------              fixed size: 600                 --------->
[     Item 1, lengh 300        ][       Item 2, lengh 300      ]
[ Item 3, lengh 200 ][ Item 4, lengh 200 ][ Item 5, length 200 ]
[    Item 6, Length 400                  ][ Item 7, length 200 ]

现在我需要选择一个容器GridView.ItemsPanel<StackPanel Orientation="Horizontal" />不会自动启动新行。 VariableSizedWrapGridWrapGrid可以限制固定宽度的项目,但所有单元格/项目都具有相同的宽度。是否有容器可以做到这一点?

1 个答案:

答案 0 :(得分:2)

我编制了my own FlowPanel。它工作得很好,并产生以下结果。

enter image description here

如果您感到好奇,那就是我的Windows 8 StackOverflow应用程序,名为Stackstabilizer即将发布。

相关问题