How to get WPF-WindowHandle at start up of the app?

Mar 9, 2009 at 4:00 PM
Hello together,
I'm searching for the right place to get the WPF-WindowHandle via WindowInteropHelper at startup of the application. In MainWindow.xaml.vb I have a Public Sub New() where I do the most of initialisation, but the WPF-Window is not yet visible an so I don't get the Handle. In VB6 there was a place called OnShow where the window was initialized completely but not visible and had already a handle. Where is the place in the code to be able to get the handle an the WPF-Window is not yet shown?

Any help appreciated.
Regards
Carsten