Display some text when binded listview has no items

前端 未结 2 1137

Following is the syntax for my listview which is binded to a class....



        
2条回答
  •  一向
    一向 (楼主)
    2021-01-03 01:24

    The trick is in overriding ListView's template. When there are no items in ListView you should set your ControlTemplate with TextBlock:

    
        
            
        
    
    

提交回复
热议问题