diff --git a/AIStudio.Wpf.DiagramDesigner/Controls/DragThumb.cs b/AIStudio.Wpf.DiagramDesigner/Controls/DragThumb.cs
index d3e2011..6b02b6f 100644
--- a/AIStudio.Wpf.DiagramDesigner/Controls/DragThumb.cs
+++ b/AIStudio.Wpf.DiagramDesigner/Controls/DragThumb.cs
@@ -194,7 +194,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
}
}
- #region
+ #region 点击
private Point? firstPoint;
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
@@ -217,6 +217,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
if (EditClickCount == 1)
{
+ DesignerItem.ExitPreviewExecuteEdit();
if (firstPoint == e.GetPosition(this))
{
DesignerItem.EditCommand?.Execute(e.GetPosition(this));
diff --git a/AIStudio.Wpf.DiagramDesigner/Themes/DiagramControl.xaml b/AIStudio.Wpf.DiagramDesigner/Themes/DiagramControl.xaml
index 2a23aba..98d13ff 100644
--- a/AIStudio.Wpf.DiagramDesigner/Themes/DiagramControl.xaml
+++ b/AIStudio.Wpf.DiagramDesigner/Themes/DiagramControl.xaml
@@ -411,12 +411,7 @@
-
-
-
-
-
+
@@ -566,12 +561,7 @@
-
-
-
-
-
+
@@ -674,8 +664,8 @@
-
+
+
-
-
-
-
-
+
+
p.IsExecuting = true);
+ }
+
+ public override async void ExitPreviewExecuteEdit()
+ {
+ var items = (this.GetFirst() ?? this).GetNexts(true);
+
+ items.ForEach(p => p.IsExecuting = false);
}
public async Task Execute()