Closed ewerspej closed 3 years ago
mmmh seems weird since binding to an ObservableCollection is supported, all the collection changed events are processed: https://github.com/roubachof/Sharpnado.HorizontalListView/blob/main/Sharpnado.HorizontalListView.Droid/Renderers/HorizontalList/AndroidHorizontalListViewRenderer.RecycleViewAdapter.cs
It doesn't work in my solution and it also doesn't work in your sample app.
ah, I see that you do not process the Move and Replace enum values of the CollectionChanged event's NotifyCollectionChangedEventArgs - you only check for Add, Remove and Reset. Thanks for the quick reply, by the way.
The reason I noticed this in the first place is that I want to implement some restrictions to the Drag & Drop. Ideally, an operation could be cancelled, but I guess that would be a Feature Request.
Just so you know I am implementing right now move and replace actions. Reset is already taken care of.
@roubachof awesome, thanks!
Platform (please complete the following information):
Describe the bug The ItemsSource bindable property of the HorizontalListView is implemented with BindingMode.TwoWay, but TwoWay-Binding actually doesn't work properly. The HorizontalListView never sees any changes to the underlying ObservableCollection which is bound to it.
This is a problem for the following reasons:
This issue is quite urgent, because it is blocking a feature I'm currently working on.
To Reproduce Steps to reproduce the behavior: