支持多个node保存到工具栏,显示还有点问题。

This commit is contained in:
kwai
2023-02-03 18:23:53 +08:00
parent 397ebcfac2
commit 2fde666182
12 changed files with 273 additions and 140 deletions

View File

@@ -79,7 +79,7 @@ namespace AIStudio.Wpf.DiagramDesigner
dataObject.DesiredSize = toolBoxData.DesiredSize;
dataObject.Icon = toolBoxData.Icon;
dataObject.ColorViewModel = toolBoxData.ColorViewModel;
dataObject.DesignerItem = toolBoxData.Addition as DesignerItemBase;
dataObject.DesignerItem = toolBoxData.Addition;
DragDrop.DoDragDrop((DependencyObject)sender, dataObject, DragDropEffects.Copy);
e.Handled = true;