WPF ListView Selecting Multiple List View Items

前端 未结 5 2088
故里飘歌
故里飘歌 2021-02-07 12:21

I am figuring out a way to Select Multiple items in list view and deleting them on a certain action. What I can\'t figure out is, how should I have these multiple items selected

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 12:56

    Get success also WPF listview by writing

    while (lvJournalDetails.SelectedItems.Count > 0)
    {
        lvJournalDetails.Items.Remove(lvJournalDetails.SelectedItem);
    }
    

提交回复
热议问题