optimized performance
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user