Add a Load More Button at the end of ListBox without losing Virtualization?

前端 未结 2 1195
暗喜
暗喜 2020-12-19 16:53

I know by editing the ListBox\'s default style like this, I can have a Button at the very end of the ListBox.



        
2条回答
  •  执笔经年
    2020-12-19 16:58

    There are a bunch of extra features these days that can help with this scenario. One of them is the addition of additional visual states on the ScrollViewer added "HorizontalCompression" and "VerticalCompression" visual state groups. By making use of these and hooking into the CurrentStateChanging event, you can load more items as you need to.

    Full details of how to implement this can be found on the Silverlight for Windows Phone Performance Team Blog.

提交回复
热议问题