dotnet/winforms
Auf GitHub ansehenListViewItem does not reset its "Selected" flag after removing from ListView
Open
#6.612 geöffnet am 3. Feb. 2022
area-controls-ListViewhelp wanted
Repository-Metriken
- Stars
- (4.100 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 14T 22h) (56 gemergte PRs in 30 T)
Beschreibung
.NET Core Version:
- 7.0.0-preview.2.22102.1
Have you experienced this same bug with .NET Framework?:
- Yes
Problem description:
- Create a
Formwith aListView - Add several
ListViewItems - Add an event to remove an
ListViewItemwhen the key is pressed - Add a
MessageBoxwith the status of theListViewItemafter deletion to the event above - Run the application
- Set focus to an
ListViewItem - Delete an
ListViewItemby pressing the key
Actual behavior:
The ListViewItem.Selected have the value True

Expected behavior:
The ListViewItem.Selected should have the value False (according to TreeView behavior)