WPF Listview empty text

后端 未结 2 1504
梦毁少年i
梦毁少年i 2021-01-12 04:35

How to show in the WPF Listview using the GridView an empty text (like in ASP.net), e.g. \"please select a person\" or \"0 items founded\"?

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 05:20

    Bind it to a DataSource + Property that returns the text you want ? Slot in a dummy object whose String representation is the text you want..

提交回复
热议问题