mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-07 09:46:37 +08:00
拖拽支持工具栏信息带入
This commit is contained in:
@@ -86,11 +86,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
dataObject.Icon = toolBoxData.Icon;
|
||||
dataObject.Text = toolBoxData.Text;
|
||||
dataObject.ColorViewModel = toolBoxData.ColorViewModel;
|
||||
//if (toolBoxData.Addition is DesignerItemViewModelBase designerItemViewModelBase)
|
||||
//{
|
||||
// dataObject.DesignerItem = designerItemViewModelBase.ToSerializableItem();
|
||||
//}
|
||||
//else
|
||||
if (toolBoxData.Addition is DesignerItemViewModelBase designerItemViewModelBase)
|
||||
{
|
||||
dataObject.DesignerItem = designerItemViewModelBase.ToSerializableItem();
|
||||
}
|
||||
else
|
||||
{
|
||||
dataObject.DesignerItem = toolBoxData.Addition;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user