Why does ItemContainerGenerator return null?

前端 未结 5 2000
闹比i
闹比i 2020-12-21 23:53

I have a ListBox, and I need to set its ControlTemplate to a Virtualizing WrapPanel which is a class that extends VirtualizingPanel, using a style that looks like this:

5条回答
  •  抹茶落季
    2020-12-22 00:54

    This is because you changed the Template of the Listbox, while u should have just changed the ItemsPanel:

        
            
                
                    
                
            
        
    

提交回复
热议问题