Can I guarantee the Window.SourceInitialized
event will always be raised before the Window.Loaded
event?
I need the HwndSource
object for further processing in my Window.Loaded event handler and I'm not sure if this will always be available by then
Here's the sequence of events you can expect (it should occur before Loaded):
If you want to double-check, or don't trust getting the SourceInitialized event...then you can try and obtain the HwndSource yourself....to see if it's connected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With