I'm currently trying to implement Drag&Drop for a SfListView where dragging should start while pressing a specific Label (with FontAweSome Icon).
It seems there isn't happening anything when running this on UWP Desktop.
I tried DragStartMode="OnDragIndicator" but nothing ever happens.
Here's the code snipped with the DragIndicatorView:
<syncfusion:SfListView x:Name="listView" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
ItemsSource="{Binding Properties.Unterkategorien}"
InputTransparent="False"
AutoFitMode="DynamicHeight"
DragStartMode="OnDragIndicator,OnHold"
ItemSize="350">
<syncfusion:SfListView.LayoutManager>
<syncfusion:GridLayout SpanCount="2" />
</syncfusion:SfListView.LayoutManager>
<syncfusion:SfListView.ItemTemplate>
<DataTemplate x:Name="ItemTemplate">
<ViewCell>
<ViewCell.View>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<usercontrols:UnterkategorieBox Grid.Column="0" Grid.Row="0" Unterkategorie="{Binding .}" />
<syncfusion:DragIndicatorView Grid.Column="0" Grid.Row="0" ListView="{x:Reference listView}"
HorizontalOptions="Start"
VerticalOptions="Start">
<Label x:Name="ReorderIcon" Margin="10,10,0,0" HorizontalOptions="StartAndExpand" HorizontalTextAlignment="Start" VerticalTextAlignment="Start" VerticalOptions="StartAndExpand" FontFamily="{StaticResource fontAwesomeSolid}" TextColor="{StaticResource colorObiWeiss}" Text="" FontSize="36" />
</syncfusion:DragIndicatorView>
</Grid>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
I've enclosed a ZIP with a screenshot on how the item looks like (8 items and they all have the move icon on top left).
Attachment:
Bildschirmfoto_20200220_um_10.40.51.png_a843acbb.zip