You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the ItemsRepeater inside ScrollViewer causes inconsistencies with DataContext.
When I scroll to the end of the ScrollViewer, or close to, the first few items' DataContext becomes null,
and when going back up, it may get mixed around with other objects.
To Reproduce
Steps to reproduce the behavior:
Have a ItemsRepeater control inside ScrollViewer and populate
Populate the ItemsRepeater
Scroll down the ScrollViewer far enough
Monitor the DataContext of ItemsRepeater
Expected behavior
DataContext is supposed to not become null, or get jumbled around.
Screenshots
bug_case.mp4
Desktop (please complete the following information):
OS: Windows 11 22H2
Version Avalonia 11.0.4
Additional context
Bug case minimal reproducible example bug_case.zip
Describe the bug
Using the
ItemsRepeaterinsideScrollViewercauses inconsistencies withDataContext.When I scroll to the end of the
ScrollViewer, or close to, the first few items'DataContextbecomes null,and when going back up, it may get mixed around with other objects.
To Reproduce
Steps to reproduce the behavior:
ItemsRepeatercontrol insideScrollViewerand populateItemsRepeaterScrollViewerfar enoughDataContextofItemsRepeaterExpected behavior
DataContextis supposed to not become null, or get jumbled around.Screenshots
bug_case.mp4
Desktop (please complete the following information):
Additional context
Bug case minimal reproducible example
bug_case.zip