mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
连接线,文本编辑
This commit is contained in:
@@ -62,9 +62,9 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
if (e.PropertyName == "IsSelected")
|
||||
{
|
||||
if (selectable.StartEditing)
|
||||
if (selectable.InitIsEditing)
|
||||
{
|
||||
selectable.StartEditing = false;
|
||||
selectable.InitIsEditing = false;
|
||||
PART_ShowText.Visibility = Visibility.Visible;
|
||||
PART_TextBlock.Visibility = Visibility.Collapsed;
|
||||
PART_ShowText.Focus();
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
protected override void InitNew()
|
||||
{
|
||||
InitIsEditing = true;
|
||||
ConnectorWidth = 30;
|
||||
ConnectorHeight = 30;
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
public bool StartEditing
|
||||
public bool InitIsEditing
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
protected override void InitNew()
|
||||
{
|
||||
this.ItemWidth = 150;
|
||||
this.StartEditing = true;
|
||||
this.InitIsEditing = true;
|
||||
}
|
||||
|
||||
private string _watermark = "请输入文本";
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
|
||||
//新建完处于编辑状态
|
||||
bool StartEditing
|
||||
bool InitIsEditing
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user