Virtualizing an ItemsControl?

前端 未结 3 2139
终归单人心
终归单人心 2020-11-22 03:45

I have an ItemsControl containing a list of data that I would like to virtualize, however VirtualizingStackPanel.IsVirtualizing=\"True\" does not s

3条回答
  •  無奈伤痛
    2020-11-22 04:00

    Building on DavidN's answer, here is a style you can use on an ItemsControl to virtualise it:

    
    
    

    I do not like the suggestion to use a ListBox as they allow the selection of rows where you do not necessarily want it.

提交回复
热议问题