Hi,
I am using the XamTreeGrid for showing folders and files inside our LOB application. In order to handle drag'n'drop inside this XamTreeGrid, we are using the dragDropManager, as shown i the following code
<igWPF:XamTreeGrid x:Name="treeGrid" PreviewMouseLeftButtonDown="treeGrid_PreviewMouseLeftButtonDown" PreviewMouseMove="treeGrid_PreviewMouseMove" DataSource="{Binding FsoItems}" ActiveDataItem="{Binding SelectedFsoItem}" InitializeRecord="treeGrid_InitializeRecord" local:XamTreeGrid.DoubleClickCommand="{Binding FsoItemDoubleClickedCommand}" local:XamTreeGrid.DoubleClickCommandParameter="{Binding ActiveDataItem, RelativeSource={RelativeSource Self}}" Theme="Office2013" Drop="treeGrid_Drop" DragOver="treeGrid_DragOver" AllowDrop="True" > <ig:DragDropManager.DragSource> <ig:DragSource IsDraggable="True" Drop="DragSource_Drop" DragStart="DragSource_DragStart" /> </ig:DragDropManager.DragSource>
The drag'n'drop works as expected, but the view containing this XamTreeGrid are not released properly, when deactivating the view. This behaviour only occurs if i expand one of the "folder" nodes before I deactivate the view. If I do not expand/collapse any of the folder nodes, the view deactivates as expected. And if I comment out the "ig:DragDropManager.DragSource" section, it deactivates as expected no matter if the folder nodes was expanded or not.
Are there something that needs to be set up, in any other way?
Best Regards
Dennis Tycho Nielsen
I forgot to apply that I am using Infragistics WPF 20151.2122.
Hello Dennis Tycho,
Thank you for posting!
After reviewing the code I did not find anything that could be related to the behavior which occurs when a node is expanded/collapsed and I could not reproduce it.
I have checked in our system for any known issues that could refer to this with Drag & Drop framework and/or the XamTreeGrid and there weren’t any at this point.
Would it be possible for you to share a sample project illustrating the behavior? If you prefer not to upload it in the forum for everyone to see, I could create a support ticket on your behalf where we can continue the communication.
Hi Maria,
When looking at the code it selves I don't see why it should cause this behaviour. Anyways, that's the way we can trigger it to happen.
I will try to see if I can get any time available for creating a sample project that I can share with you.
Best regards
Dennis
Hello Dennis,Thank you for spending the time isolating this so I can investigate it further.