mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-13 04:59:26 +08:00
修复demo中彩色节点的bug
This commit is contained in:
@@ -158,8 +158,21 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
private bool _disableAttachTo;
|
||||
public bool DisableAttachTo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _disableAttachTo;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref _disableAttachTo, value);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool CanAttachTo(ConnectorInfoBase port)
|
||||
=> port != this && !port.IsReadOnly;
|
||||
=> port != null && port != this && !port.IsReadOnly;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user