I am starting a new WPF project and I need lighting on the launch of the application.
I watched 2 different WPF projects to see how to begin.
- The first one starts with the
void App_Startup(object sender, StartupEventArgs e)method in theApp.xaml.csfile, called directly from theApp.xamlfile (Startup="App_Startup"). - The other one starts with the
protected override void OnStartup(StartupEventArgs e)method in theApp.xaml.csfile.
In addition of that, when I started my WPF project, the default code template starts in a third way with StartupUri="MainWindow.xaml" in the App.xaml file.
What are the differences between this three manners?