optimized performance

This commit is contained in:
NaBian committed 2020-02-02 14:37:39 +08:00
1 parent e1a07c0acc
commit e9a7123398
16 files changed
+239 -190

No files matched your search

@@ -148,5 +148,7 @@ namespace HandyControl.Tools
public static IntPtr CreateHandle() => new WindowInteropHelper(new Window()).EnsureHandle();
public static IntPtr GetHandle(this Window window) => new WindowInteropHelper(window).EnsureHandle();
public static HwndSource GetHwndSource(this Window window) => HwndSource.FromHwnd(window.GetHandle());
}
}