截屏嵌入,查找待优化

This commit is contained in:
艾竹
2023-04-09 21:48:26 +08:00
parent 21009fc383
commit 429d7b1e24
6 changed files with 95 additions and 50 deletions

View File

@@ -377,6 +377,15 @@ namespace AIStudio.Wpf.DiagramApp.ViewModels
return this._aboutCommand ?? (this._aboutCommand = new DelegateCommand(() => this.AboutExecuted()));
}
}
private ICommand _screenshotCommand;
public ICommand ScreenshotCommand
{
get
{
return this._screenshotCommand ?? (this._screenshotCommand = new DelegateCommand(() => this.ScreenshotExecuted()));
}
}
#endregion
public ItemActionCallback ClosingTabItemHandler
@@ -676,6 +685,12 @@ namespace AIStudio.Wpf.DiagramApp.ViewModels
aboutWindow.ShowDialog();
}
private void ScreenshotExecuted()
{
AIStudio.Wpf.ComeCapture.MainWindow window = new AIStudio.Wpf.ComeCapture.MainWindow();
window.Show();
}
#region
private Color[] GenerateStandardGradients()
{