mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-13 20:56:35 +08:00
block
This commit is contained in:
@@ -724,8 +724,10 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
else
|
||||
{
|
||||
itemBase = Activator.CreateInstance(dragObject.ContentType) as DesignerItemViewModelBase;
|
||||
itemBase.Text = dragObject.Text;
|
||||
itemBase.Icon = dragObject.Icon;
|
||||
if (!string.IsNullOrEmpty(dragObject.Text))
|
||||
itemBase.Text = dragObject.Text;
|
||||
if (!string.IsNullOrEmpty(dragObject.Icon))
|
||||
itemBase.Icon = dragObject.Icon;
|
||||
itemBase.ColorViewModel = CopyHelper.Mapper(dragObject.ColorViewModel);
|
||||
if (dragObject.DesiredSize != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user