mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-12 04:29:27 +08:00
最近精简代码,有些bug,修复
This commit is contained in:
@@ -356,19 +356,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
private bool enabledForSelection = true;
|
||||
public bool EnabledForSelection
|
||||
{
|
||||
get
|
||||
{
|
||||
return enabledForSelection;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref enabledForSelection, value);
|
||||
}
|
||||
}
|
||||
|
||||
private double _left;
|
||||
[CanDo]
|
||||
public double Left
|
||||
|
||||
@@ -1251,7 +1251,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
DoCommandManager.DoNewCommand(this.ToString(),
|
||||
() => {
|
||||
ClearSelectedItems();
|
||||
Add(newitems);
|
||||
Add(newitems, true);
|
||||
},
|
||||
() => {
|
||||
foreach (var item in newitems)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,6 +191,22 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
private bool _showText;
|
||||
public bool ShowText
|
||||
{
|
||||
get
|
||||
{
|
||||
return _showText;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (!SetProperty(ref _showText, value))
|
||||
{
|
||||
RaisePropertyChanged(nameof(ShowText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool _visible = true;
|
||||
public bool Visible
|
||||
{
|
||||
@@ -343,7 +359,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected virtual void ClearText()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user