实现了多画布下,节点的复制粘贴功能

This commit is contained in:
fengjiayi
2025-05-27 18:32:40 +08:00
parent 7ad6041be6
commit 7848af0363
53 changed files with 1187 additions and 499 deletions

View File

@@ -20,6 +20,7 @@ namespace Serein.Workbench.Views
/// </summary>
public partial class FlowWorkbenchView : Window
{
private FlowWorkbenchViewModel ViewModel => ViewModel as FlowWorkbenchViewModel;
public FlowWorkbenchView()
{
this.DataContext = App.GetService<Locator>().FlowWorkbenchViewModel;
@@ -40,5 +41,12 @@ namespace Serein.Workbench.Views
this.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
this.Height = System.Windows.SystemParameters.PrimaryScreenHeight;*/
}
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
// 确保所有窗口关闭
LogWindow.Instance.Close();
System.Windows.Application.Current.Shutdown();
}
}
}