Sorry for confusing title =D
In WindowsForms
I have Main
method, which I can use to do something before creating or displaying main form. For example, processing command line parameters, showing splash window and preloading configuration, having several windows shown one after each other, main loop (when there is a repeatable working sequence, then Main
is pretty good place to put there do{}while
), etc.
Which is the best analog for such Main
method in WPF
?
I tried to use Application.Startup
event, but it has some issues.
I could think of creating wpf application programmatically somehow (then I should be unbound from xaml autogenerated Main
and can have my own). But this all sounds too complicated. I probably missing something very simple.