I'm trying to store the values of the headers of dragged items into a generic list. It appears to be happening twice.
_fileQueue is just a generic list I instantiate at runtime. The method is iterating through the dragged items twice though. I set a breakpoint and stepped through it, and it looks like the method is just firing twice. What could be the cause of this? I'm dragging the items into another RadTreeView, but I haven't wired any event handlers to it if that helps.
tvDirectoryDragStarted(
object
sender, RadTreeViewDragEndedEventArgs e)
{
for
(
int
i = 0;i<e.DraggedItems.Count;i++)
{
RadTreeViewItem item = (RadTreeViewItem)e.DraggedItems[i];
_fileQueue.Items.Add(item.Header.ToString());
}
}
_fileQueue is just a generic list I instantiate at runtime. The method is iterating through the dragged items twice though. I set a breakpoint and stepped through it, and it looks like the method is just firing twice. What could be the cause of this? I'm dragging the items into another RadTreeView, but I haven't wired any event handlers to it if that helps.