Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
Discussion options

You must be logged in to vote

我不确定你具体的代码是啥样的,但是对于基于XAML的布局来说,长列表优化的核心就在于虚拟化。
比如使用 ListView,只要你不是在 ListView 外面再套了个 ScrollViewer,那么简单的列表虚拟化问题不大。
至于更详细的列表虚拟化文档,可以参考 ListView 和 GridView 数据虚拟化ListView 和 GridView UI 优化

我个人是用的 ScrollViewer + ItemsRepeater,这样的组合自由度更高一些,可以实现更复杂的列表布局

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Seidko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants