Display some text when binded listview has no items

前端 未结 2 1134

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



        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 01:38

    The ListView itself does not supply this functionality. The simplest approach is to place a TextBlock in front of the ListView with its Visibility set to Collapsed. You can then make it Visible when your list has no items in it.

    If you need help with the specific, please expand your question.

提交回复
热议问题