On Windows forms, there was a win1.Handle property, which, if I recall, returns a handle to the handle of the main window?
Is there an equivalent way to get a WPF window handle?
I found the following code online,
IntPtr windowHandle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
but I donβt think this will help me because my application has several windows.
Thank!!
wpf window handle
Evan Oct 12 '09 at 18:38 2009-10-12 18:38
source share