ItemsRepeater with NonVirtualizingLayout doesn't react to Replace action on ItemsSource #6614
Closed
1 of 2 tasks
Labels
area-ItemsRepeater
help wanted
Issue ideal for external contributors
no-issue-activity
team-Controls
Issue for the Controls team
Describe the bug
When replacing an entry in an
ObservableCollection
, used asItemsSource
of anItemsRepeater
configured with anNonVirtualizingLayout
layout, the control receives a collection changed event about theReplace
action but theNonVirtualizingLayoutContext
provided to theMeasureOverride
andArrangeOverride
will still have oldChildren
representing old value.Steps to reproduce the bug
ItemsRepeater
with anObservableCollection
asItemsSource
and aNonVirtualizingLayout
asLayout
ObservableCollection
by replacing one entry with a new valueExpected behavior
The UI should refresh and displays the new value instead of the old one.
Screenshots
No response
NuGet package version
No response
Windows app type
Device form factor
Desktop
Windows version
Insider Build (xxxxx)
Additional context
Note that
ItemsRepeater::OnItemsSourceViewChanged
is well received as expected when the replace action occurs.The text was updated successfully, but these errors were encountered: