add Screenshot Demo
This commit is contained in:
1 parent
46b1297aa7
commit
4113f9d814
23 files changed
+187
-41
No files matched your search
@@ -161,5 +161,10 @@ namespace HandyControl.Interactivity
|
||||
/// 关闭窗口
|
||||
/// </summary>
|
||||
public static CloseWindowCommand CloseWindow { get; } = new CloseWindowCommand();
|
||||
|
||||
/// <summary>
|
||||
/// 开始截图
|
||||
/// </summary>
|
||||
public static StartScreenshotCommand StartScreenshot { get; } = new StartScreenshotCommand();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
using HandyControl.Controls;
|
||||
|
||||
namespace HandyControl.Interactivity
|
||||
{
|
||||
public class StartScreenshotCommand : ICommand
|
||||
{
|
||||
public bool CanExecute(object parameter) => true;
|
||||
|
||||
public void Execute(object parameter) => new Screenshot().Start();
|
||||
|
||||
public event EventHandler CanExecuteChanged;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
using HandyControl.Controls;
|
||||
|
||||
namespace HandyControl.Interactivity
|
||||
{
|
||||
public class StartScreenshotCommand : ICommand
|
||||
{
|
||||
public bool CanExecute(object parameter) => true;
|
||||
|
||||
public void Execute(object parameter) => new Screenshot().Start();
|
||||
|
||||
public event EventHandler CanExecuteChanged;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user