mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-11 03:36:38 +08:00
block
This commit is contained in:
@@ -93,6 +93,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
public int EditClickCount
|
||||
{
|
||||
get; set;
|
||||
} = 2;
|
||||
|
||||
private bool enabledForSelection = true;
|
||||
public bool EnabledForSelection
|
||||
{
|
||||
@@ -183,6 +188,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public virtual void PreviewExecuteEdit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected virtual void ExecuteEditCommand(object param)
|
||||
{
|
||||
if (IsReadOnly == true) return;
|
||||
|
||||
@@ -428,6 +428,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
await (this.GetFirst() ?? this).Execute();
|
||||
}
|
||||
|
||||
public override async void PreviewExecuteEdit()
|
||||
{
|
||||
await BeforeExecute();
|
||||
}
|
||||
|
||||
public async Task Execute()
|
||||
{
|
||||
await BeforeExecute();
|
||||
|
||||
Reference in New Issue
Block a user