Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
790
How to drag drop multiple items from one Listview to another Listview using ig drag drop framework
posted

Hi

I have an issue with drag drop multiple items from listview to another listview. I'm able to drag drop single item, but having issues with multiple items. When I select multiple items and trying to drag, it's deselcing the other selected items and selecting the current one and allowing me drag.  Please help.

Sample code : I use this datatemplate as my list view itemtemplate.

<DataTemplate x:Key="ProductTemplate" DataType="nodes:CatalogProduct">
<StackPanel Orientation="Horizontal" ToolTip="{Binding NamePath}">
<Image Height="16" Width="16" Margin="1 0" Source="/EAB.Premium.Client.Framework;component/Images/Product.ico"/>
<TextBlock Text="{Binding Name}" Width="300">
<ig:DragDropManager.DragSource>
<ig:DragSource IsDraggable="True" Drop="DragSource_OnDrop" DataObject="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBlock}}}">
<ig:DragSource.DragTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Height="16" Width="16" Margin="1 0" Source="Product.ico"/>
<TextBlock Text="{Binding Name}" FontWeight="Bold"/>
</StackPanel>
</DataTemplate>
</ig:DragSource.DragTemplate>
</ig:DragSource>
</ig:DragDropManager.DragSource>
</TextBlock>
</StackPanel>
</DataTemplate>

Parents
No Data
Reply Children
No Data