This question is locked. New answers and comments are not allowed.
I have a RadTreeView control. Currently in code behind I'm doing:
I typically try to do as little code behind as possible and I'd prefer to handle this in my ViewModel instead. Is there a way to handle the DragQuery in my ViewModel via a xaml binding rather than doing AddHandler() in my code behind?
Thanks for your help.
Rodd
public EntityNavigator()
{
InitializeComponent();
UnitTree.AddHandler(RadDragAndDropManager.DropQueryEvent, new EventHandler<
DragDropQueryEventArgs
>(UnitTree_DropQuery), true);
}
I typically try to do as little code behind as possible and I'd prefer to handle this in my ViewModel instead. Is there a way to handle the DragQuery in my ViewModel via a xaml binding rather than doing AddHandler() in my code behind?
Thanks for your help.
Rodd