mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
最近精简代码,有些bug,修复
This commit is contained in:
@@ -39,13 +39,14 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
base.Init(root, initNew);
|
||||
|
||||
CustomText = true;
|
||||
CustomText = true;
|
||||
}
|
||||
|
||||
protected override void InitNew()
|
||||
{
|
||||
this.ItemWidth = 150;
|
||||
this.ClearConnectors();
|
||||
ShowText = true;
|
||||
}
|
||||
|
||||
private string _watermark = "请输入文本";
|
||||
@@ -60,5 +61,10 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
SetProperty(ref _watermark, value);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void ClearText()
|
||||
{
|
||||
Root.RemoveItemCommand.Execute(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user