This commit is contained in:
艾竹
2023-06-13 22:51:34 +08:00
parent 7a0630bbc8
commit efec06f853

View File

@@ -121,7 +121,11 @@ namespace AIStudio.Wpf.DiagramDesigner
child.RemoveFromSelection();
this.AddToSelection(true, false);
AlignNext(this.Next);
System.Windows.Application.Current?.Dispatcher.BeginInvoke(new Action(async () => {
await Task.Delay(1000);
AlignNext(this.Next);
}));
}
public virtual void RemoveChild(BlockDesignerItemViewModel child)
@@ -129,7 +133,10 @@ namespace AIStudio.Wpf.DiagramDesigner
this.RemoveFromSelection();
child.AddToSelection(true, false);
AlignNext(this.Next);
System.Windows.Application.Current?.Dispatcher.BeginInvoke(new Action(async () => {
await Task.Delay(1000);
AlignNext(this.Next);
}));
}
public ObservableCollection<ItemsContainerInfo> Contains