[UWP]如何反转listview [英] [UWP] How to invert listview
问题描述
<ListView>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsStackPanel VerticalAlignment="Bottom"
ItemsUpdatingScrollMode="KeepLastItemInView"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
KeepLastItemInView不存在。有另一种选择吗?
KeepLastItemInView doesn't exist. there is an alternative?
https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/inverted-lists
https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/inverted-lists
推荐答案
您需要将Windows 10内部版本14393或更高版本作为目标才能使用KeepLastItemInView。如果您需要定位早期版本,则必须自己实现。
You need to target Windows 10 build 14393 or later to use KeepLastItemInView. If you need to target earlier versions you'll have to implement it yourself.
从Windows 10版本1607开始,KeepLastItemInView枚举值可用。当您的应用程序在早期版本的Windows 10上运行时,您无法使用此值。
The KeepLastItemInView enum value is available starting with Windows 10, version 1607. You can't use this value when your app runs on earlier versions of Windows 10.
这篇关于[UWP]如何反转listview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!