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.

Update KB5018410 changes ListView behavior in a way that makes software unusable

See original GitHub issue
  • .NET Framework Version: 4.6.2
  • Windows version: 21H1

Problem description: ScrollViewer changed behavior after windows update KB5018410. Most obviously demonstrated in ListView

Actual behavior: Inserting item at index 0, even when ListView is ScrollOffset == 0, will scroll down one item

Expected behavior: When scrolled at the top, inserting an item at 0 should not move the scrollbar. New item should be displayed without scrolling up.

Minimal repro: Bind a ListView to a ObservableCollection and add enough items to display a vertical scroll bar Make sure scrollbar is at the top Insert an item at index 0 ListView is now scrolled down 1 item

Here’s a minimal repro solution: ListViewUpdate.zip

Behavior before update: You will see items being added as the button is clicked

Behavior after update: You will see items 1-4 being added, after which you will keep seeing 1-4 and the scrollbar will indicate you are scrolling down.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
obibencommented, Oct 19, 2022

@miloush I can indeed modify every bit of existing code I’ve ever written and compiled in WPF to act normal, then distribute updates to clients. I’d prefer if updating windows didn’t force me to do that.

1reaction
miloushcommented, Oct 18, 2022

Thank you. Can you not ScrollIntoView the added item?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desk top showed update cum. upd KB5018410 for pc last ...
When the desk top finally appeared it was changed. Missing tons of files on the desk top screen. It was as if everything...
Read more >
Untitled
WebOct 13, 2022 · Security 1 Insights New issue Update KB5018410 changes ListView behavior in a way that makes software unusable #7199 Closed...
Read more >
Untitled
Update KB5018410 changes ListView behavior in a way that … How to Add the contents of several WPF C# ListView in another …...
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