WPF: List boxes and virtualization

前端 未结 4 592
孤独总比滥情好
孤独总比滥情好 2020-12-16 00:11
  1. How do I know whether or not my list is being virtualized?
  2. How do I make this snippet virtualized?

    
    
            
4条回答
  •  無奈伤痛
    2020-12-16 01:09

    To know if it is virtualized you can simply add 10K dummy entries to the collection and see how fast the loading happens as well as how fast the vertical scroll works which will clearly tell a big difference. I guess you need to change your StackPanel in the control template to VirtualizingStackPanel.

提交回复
热议问题