So my InitializeComponent method call in the Window's constructor is running through the XML and adding the controls and plugging them into their events.
So when a property of one of the controls changes it calls the Method that subscribes to the event. The method references a control that has not yet been built.
Why does this happen in this order here? It worked in WinForms because the events were not fired until later, after all the controls were created. Is there a way to force this in WPF?
The other solutions I see are
I need to subscribe to the events after initialization. This is a pain in the deriere.
I need to check for null whenever i deal with a control. Also a pain in the deriere, with the addition of being pain-staking.
Any help?