mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
最近精简代码,有些bug,修复
This commit is contained in:
@@ -78,6 +78,20 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
get; private set;
|
||||
}
|
||||
|
||||
private bool enabledForSelection = true;
|
||||
public bool EnabledForSelection
|
||||
{
|
||||
get
|
||||
{
|
||||
return enabledForSelection;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref enabledForSelection, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private bool _isReadOnlyText = false;
|
||||
public bool IsReadOnlyText
|
||||
{
|
||||
@@ -105,27 +119,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
SetProperty(ref _customText, value);
|
||||
}
|
||||
}
|
||||
|
||||
private bool _showText;
|
||||
public bool ShowText
|
||||
{
|
||||
get
|
||||
{
|
||||
return _showText;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (!SetProperty(ref _showText, value))
|
||||
{
|
||||
RaisePropertyChanged(nameof(ShowText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void ClearText()
|
||||
{
|
||||
ShowText = false;
|
||||
|
||||
}
|
||||
|
||||
private void ExecuteSelectItemCommand(object param)
|
||||
@@ -163,8 +162,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
if (IsReadOnly == true) return;
|
||||
|
||||
ShowText = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user