I want to do drag and drop on a RadTreeListView, for example, moving items from one parent node to another. I need to do special handling during the drop operation. For that, I need the underlying data item of that row.
When I register a handler for, say PreviewDrop, in DragEventArgs, I see OriginalSource is the TextBox, which I assume is the visual UIElement of the drop target. How do I get to the item backed by it in the view model? (The DragInitializeEventArgs.Data gives me a collection of these data items being moved, so I have that).
Is there something simple I'm missing? Or do I need to climb the visual tree to somehow get to the bound item?
Thanks!
When I register a handler for, say PreviewDrop, in DragEventArgs, I see OriginalSource is the TextBox, which I assume is the visual UIElement of the drop target. How do I get to the item backed by it in the view model? (The DragInitializeEventArgs.Data gives me a collection of these data items being moved, so I have that).
Is there something simple I'm missing? Or do I need to climb the visual tree to somehow get to the bound item?
Thanks!