WPF ListBox with a ListBox - UI Virtualization and Scrolling

前端 未结 5 1030
执笔经年
执笔经年 2020-11-28 03:03

My prototype displays \"documents\" that contain \"pages\" that are represented by thumbnail images. Each document can have any number of pages. For example, there might be

5条回答
  •  甜味超标
    2020-11-28 03:33

    .NET 4.5 now has the VirtualizingPanel.ScrollUnit="ScrollUnit" property. I just converted one of my TreeViews to a ListBox and the performance was noticeably better.

    More information here: http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingpanel.scrollunit(v=vs.110).aspx

提交回复
热议问题