How-to define Empty DataTemplate for the ItemsControl based controls like ListView or DataGrid

后端 未结 3 1343
刺人心
刺人心 2021-02-13 10:31

ASP.NET controls like ListView allows providing a custom template by setting the ListView.EmptyDataTemplate property, this template will be rendered in case of empty data source

3条回答
  •  梦如初夏
    2021-02-13 10:56

    There is a 100% xaml solution that makes use of the "HasItems" dependancy property.

    
        
            
                
            
        
        
            
        
    
    

提交回复
热议问题