AvaloniaUI / Avalonia.Controls.ItemsRepeater

ItemsRepeater is a light-weight control to generate and present a collection of items.
MIT License
3 stars 1 forks source link

ItemsRepeater Becomes Desynchronized With Items After Item Sort #13

Open skuehlshelby opened 2 years ago

skuehlshelby commented 2 years ago

Description When using an ItemsRepeater control, the displayed items become out of sync with the items source after the items source is sorted. Display order is not respected, and other weird things can happen as well, including repeated visual elements which are not duplicated in the items source.

To Reproduce The problem has persisted for me under a variety of circumstances. I have tried the following to fix the problem:

Expected behavior The displayed items should match the source items, in both number and order, at all times.

Desktop

Additional context This is my first project with Avalonia, so please tell me if you think I am doing something incorrectly.

maxkatz6 commented 2 years ago

I have using sorting with no issues before. So minimal repro would be helpful.

Do you maybe use WrapLayout? This one is known to has such issue. https://github.com/AvaloniaUI/Avalonia.Controls.ItemsRepeater/issues/6

skuehlshelby commented 2 years ago

I am not using WrapLayout. I will try go get a minimal repro, but I might not have time.

timunie commented 2 years ago

I am not using WrapLayout. I will try go get a minimal repro, but I might not have time.

It's up to you. But without a sample, no help can be provided. I hope for your understanding.