In a WPF project, what kind of relationship MainWindow class has with App class? the reason I’m asking is because in a project designed base on MVVM, I do see some tasks which could be handled by MainWindows.xaml.cs or its code behind instead are implemented in App class.
Thanks.
MainWindow is usually connected to the
Appclass throughStartupUriin App.xaml.You could remove the
StartupUriin App.xaml and overrideOnStartupin App.xaml.cs like this