mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 08:26:36 +08:00
block
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user