Esempio n. 1
0
 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;
     }
Esempio n. 2
0
 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;
     }
 }