【发布时间】:2018-11-15 15:58:01
【问题描述】:
【问题讨论】:
-
您是否从社区工具中检查了
AdaptiveGridView? -
你的 XAML/你尝试了什么?
标签: xaml uwp adaptive-ui
【问题讨论】:
AdaptiveGridView?
标签: xaml uwp adaptive-ui
根据您的要求,您可以使用WrapPanel Xaml Control 来接近。您只需将默认 ListView ItemsPanelTemplate 替换为 WrapPanel。更详细的可以参考下面的代码。
<ListView Name="WrapPanelContainer"
IsItemClickEnabled="True"
ItemTemplate="{StaticResource PhotoTemplate}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<controls:WrapPanel Background="{ThemeResource Brush-Grey-04}"
Padding="0,0,0,0"
VerticalSpacing="5"
HorizontalSpacing="5" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ListView>
【讨论】: