我正在尝试使用自动元素构建一个ItemsControl,该元素在内部安排ItemsWrapGrid(取决于窗口大小)。这一切都可以在uwp中使用。但是在Uno平台上,不能完全支持ItemsWrapGrid。
我无法设置itemsHeight,ItemsWidth或Direction。是否有类似的解决方法。也许使用GridView代替ItemControl?
我的代码:
<ItemsControl.ItemsPanel>
<itemspaneltemplate>
<ItemsWrapGrid ItemsHeight="200" ItemsWidth="300" Orientation="Horizontal">
</ItemsWrapGrid>
</itemspaneltemplate>
</ItemsControl.ItemsPanel>