【发布时间】:2020-01-21 04:45:03
【问题描述】:
我想实现一个水平的列表框,多行。
使用 WrapPanel:
<ListBox>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
我得到以下结果:
但我正在寻找这个结果:
我该如何实现?
【问题讨论】:
-
你试过
UniformGrid而不是StackPanel吗? -
@SomeBody 是的,但使用 UniformGrid 我无法定义 MinWidth