mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
截屏嵌入,查找待优化
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user