using System.Windows;
using System.Windows.Interop;

namespace JuliusSweetland.OptiKey.Extensions
{
    public static class WindowExtensions
    {
        public static System.Windows.Forms.Screen GetScreen(this Window window)
        {
            return System.Windows.Forms.Screen.FromHandle(new WindowInteropHelper(window).Handle);
        }
    }
}
