关于 xaml:windows phone 8.1 中的延迟加载

Lazy loading in windows phone 8.1

是否有没有任何第三方工具包的 windows phone 8.1 延迟加载的文章或示例我通过 google 并没有找到任何可以帮助我在 windows phone 8.1 中实现延迟加载的工作或示例或文章。


如果您只需取出 ListView 的 ScrollViewer 并订阅其 viewChanged 事件处理程序以检查滚动进度,您就可以在 Windows Phone 8.1 中增量加载 ListView\\ 的项目而无需使用任何工具包.如果进度超过某个阈值,则调用该函数以获取更多项目。
使用此函数获取滚动查看器。

1
2
3
4
5
6
7
8
9
10
11
12
13
public static ScrollViewer GetScrollViewer(DependencyObject depObj)
{
    if (depObj is ScrollViewer) return depObj as ScrollViewer;

    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(depObj); i++)
    {
        var child = VisualTreeHelper.GetChild(depObj, i);

        var result = GetScrollViewer(child);
        if (result != null) return result;
    }
    return null;
}

这里是关于在 WP 8.1 WinRT 应用程序中实现延迟加载而不使用任何工具包的分步教程。
http://www.windowsapptutorials.com/windows-phone-8-1/listview/lazy-loading-listview/