question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Narrator does not announce the focused ListViewItem when the user returns focus to the ListView after deleting the ListViewItem.

See original GitHub issue

.NET Core Version:

  • .NET Core SDK: 7.0.0-alpha.1.21574.1

Have you experienced this same bug with .NET Framework?:

  • No (the issue is reproduced since .NET Core 5.0)

Repro steps:

  1. Create a Form with a ListView and a couple of Buttons.
  2. Add a couple of Columns to the ListView and set the view mode to Details.
  3. Make the first Button a button for adding ListViewItems to the ListView.
  4. Make the second Button a button to delete ListViewItems from the ListView.
  5. Launch the application.
  6. Add a couple of ListViewItems using the first Button.
  7. Set focus to the first ListViewItems and press the Button to delete.
  8. Use Tab to return focus to the ListView.

Actual behavior: The Narrator announces nothing. 6238

Expected: The Narrator should announce data about the ListView. image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Olina-Zhangcommented, Aug 4, 2022

@NikitaSemenovAkvelon tested this issue in the latest .Net 7.0 build: 7.0.100-rc.1.22402.10, it doesn’t reproduce now: after deleting listview item, then enter listView again, Narrator can announce it. I think we can close it now. ListView

0reactions
merriemcgawcommented, Aug 29, 2022

Yes, let’s close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Focus on next item in a ListView after deleting the selected ...
You need to get the index of the item you're removing, remove it, then set the selection to an item near the one...
Read more >
ListViewItem.Focused Property (System.Windows.Forms)
Gets or sets a value indicating whether the item has focus within the ListView control.
Read more >
Where to put focus after deleting an item in a list
Whenever user deletes focused value then move the focus to default value of the list. Hope this solves your problem. Share.
Read more >
How to select/clear selection in listview-control in C#- ...
Note:- By default, when the list view is not focused, selected item is grayed out. Change the selected item style as required.
Read more >
Accessibility (a11y)
A child with the same accessible name as its parent is accessibility focusable. Control doesn't receive focus when accessibility focused. TabIndex is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found