My goal is to drag a selected tree view node, with the ctrl key pressed, to perform an alternate drop. My issue is that when the ctrl key is held down, prior to clicking a selected node, that node is deselected on the mouse down event. When this happens my dragged payload is bound to an empty collection of selected items. I decided to compare this behavior with the solution explorer in VS and found that VS toggles the selection on mouse up, not down. So my question is, can I alter the tree view to select a node on mouse up? Is there a different way to reference this now deselected item?
My tree view's selection mode is set to multiple and I am setting the payload of the item via the DragInitialize event within an attached behavior (below).
Thanks!
My tree view's selection mode is set to multiple and I am setting the payload of the item via the DragInitialize event within an attached behavior (below).
var data = (sender
as
RadTreeView).SelectedItems;
Thanks!