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:
- Created a year ago
- Reactions:5
- Comments:15 (6 by maintainers)
Top GitHub Comments
@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.
Thank you. Can you not ScrollIntoView the added item?