mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-12 20:26:35 +08:00
block
This commit is contained in:
@@ -86,7 +86,14 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
dataObject.Icon = toolBoxData.Icon;
|
||||
dataObject.Text = toolBoxData.Text;
|
||||
dataObject.ColorViewModel = toolBoxData.ColorViewModel;
|
||||
dataObject.DesignerItem = toolBoxData.Addition;
|
||||
//if (toolBoxData.Addition is DesignerItemViewModelBase designerItemViewModelBase)
|
||||
//{
|
||||
// dataObject.DesignerItem = designerItemViewModelBase.ToSerializableItem();
|
||||
//}
|
||||
//else
|
||||
{
|
||||
dataObject.DesignerItem = toolBoxData.Addition;
|
||||
}
|
||||
|
||||
DragDrop.DoDragDrop((DependencyObject)sender, dataObject, DragDropEffects.Copy);
|
||||
e.Handled = true;
|
||||
|
||||
Reference in New Issue
Block a user