<sf:SfListView
Grid.Row="2"
Grid.ColumnSpan="3"
AutoFitMode="Height"
DragItemTemplate="{StaticResource DraggingParameterDataTemplate}"
DragStartMode="OnHold"
IsScrollingEnabled="False"
ItemTemplate="{StaticResource ParameterDataTemplate}"
ItemsSource="{Binding Parameters}"
SelectionMode="None"
TapCommand="{Binding OpenParameterCommand, Mode=OneTime}">
<sf:SfListView.DragDropController>
<sf:DragDropController UpdateSource="True" />
</sf:SfListView.DragDropController>
<sf:SfListView.Behaviors>
<b:EventToCommandBehavior
Command="{Binding SetParameterOrderCommand, Mode=OneTime}"
EventArgsConverter="{StaticResource ForwardValueConverter}"
EventName="ItemDragging" />
</sf:SfListView.Behaviors>
</sf:SfListView>
I have set IsScrollingEnabled to false because i have wrapped that list view in a scroll view with serveral other controls and layouts.
The problem occurs only after adding a new element. When I remove a new element, drag and drop is possible again.
Reproduction steps:
1. initialize ObservableCollection with some entries.
Result: Drag and Drop works.
2. add a new element.
Result: Drag and Drop does not work properly.
3. delete an existing element.
Result: Drag and Drop works.
4. add a new element.
Result: Drag and drop does not work properly.
5. and so on.
Another interesting point is that this error only exists if IsScrollingEnabled="false".
Thanks for your great job.