【发布时间】:2020-06-10 11:49:40
【问题描述】:
我正在尝试构建一个 ItemsControl,其中包含一个在内部排列 ItemsWrapGrid 的自动元素(取决于窗口大小)。这一切都在uwp中工作。但是对于 uno 平台 ItemsWrapGrid 不完全支持。
我无法设置 itemsHeight、itemsWidth 或方向。有没有类似的解决方法。也许使用 GridView 而不是 ItemControl?
我的代码:
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid ItemsHeight="200" ItemsWidth="300" Orientation="Horizontal">
</ItemsWrapGrid>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
【问题讨论】:
标签: android xaml uwp itemscontrol uno-platform