private void DiagramLibraryNode_Drop(object sender, DragEventArgs e) { if (sender is FrameworkElement element && element.DataContext is ObservableDiagramLibraryNode destinationNode) { IntegrationUtils.DragDropToDiagramLibraryNode(e.Data, destinationNode, IntegrationUtils.GetDropAction(e.KeyStates)); e.Handled = true; }
private void DiagramsListView_Drop(object sender, DragEventArgs e) { if (sender == DiagramsListView && VM.NodeIsSelected) { IntegrationUtils.DragDropToDiagramLibraryNode(e.Data, VM.SelectedNode, IntegrationUtils.GetDropAction(e.KeyStates)); e.Handled = true; } }