I have a breakpoint in a form’s OnLoaded event (which dynamically creates some controls), yet when I instantiate the form, it simply sits there looking blanched, and Window_Loaded() is never called.
I instantiate the form with a custom constructor:
NoUseForAName nufan = new NoUseForAName(iListMsgTypes, dtFrom, dtTo);
nufan.Show();
And have added the Loaded() event, which I expect to get called directly after I call .Show() on the form:
private void Window_Loaded(object sender, RoutedEventArgs e)
Why is [Window_]Loaded() not getting reached?
You should either add
as the first line of your custom constructor, or call the default constructor like this: