In Winforms you just have the Main function and that’s what runs first, but in WPF you set the window you want to start with in the Application.xaml file. If I try to run anything other than a window, how would I do that? I’m porting over a winforms application that does some logic at start to determine which window to open and I’d rather have it just be a class that runs than a window that never appears.
Share
Remove the
StartupUrifromApp.xaml, overrideOnStartupinApp.xaml.cs.