add Screenshot Demo
This commit is contained in:
1 parent
46b1297aa7
commit
4113f9d814
23 files changed
+187
-41
No files matched your search
@@ -1,16 +1,15 @@
|
||||
using System;
|
||||
using System.Windows.Media;
|
||||
using HandyControl.Data;
|
||||
|
||||
namespace HandyControl.Controls
|
||||
{
|
||||
public class Screenshot
|
||||
{
|
||||
public event EventHandler Snapped;
|
||||
|
||||
public ImageSource Source { get; set; }
|
||||
public static event EventHandler<FunctionEventArgs<ImageSource>> Snapped;
|
||||
|
||||
public void Start() => new ScreenshotWindow(this).Show();
|
||||
|
||||
internal void OnSnapped() => Snapped?.Invoke(this, EventArgs.Empty);
|
||||
internal void OnSnapped(ImageSource source) => Snapped?.Invoke(this, new FunctionEventArgs<ImageSource>(source));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user