WPF: List boxes and virtualization

前端 未结 4 591
孤独总比滥情好
孤独总比滥情好 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 00:52

    1. If you want to know for certain. Download Snoop it has a 3d view that you can use to see every element that is rendered. (on and off screen) If your list box is not virtualised you will see all the list items marching off the page in a lovely 3d view.

    It is an essential tool for the wpf developer as it has a couple of other really handy features as well

    1. Get rid of that list box template that uses a stack panel. If all it is doing is making the background black, then just set the background black.

提交回复
热议问题