Split sample project up

This commit is contained in:
Daniel Clark
2021-02-09 17:11:24 +00:00
parent d8581f33e7
commit aa16180509
71 changed files with 460 additions and 274 deletions
@@ -0,0 +1,18 @@
using Microsoft.Windows.Sdk;
using System;
namespace NotificationFlyout.Wpf.UI.Helpers
{
public class WindowHelper
{
public static IntPtr GetHandle(string windowName)
{
return PInvoke.FindWindow(windowName, null);
}
public static uint GetDpi(IntPtr handle)
{
return PInvoke.GetDpiForWindow((HWND)handle);
}
}
}