Click here to Skip to main content
16,016,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i set a class as Startup Page instead of a xaml page in Wpf Application???


Thanks in Advance
Posted

1 solution

Hi,
By default in WPF Application execution starts in App class that implements Application class member of System.Windows namespace.
Application class has StartupUri property - you can use this one.
Also I would use the Startup event. You can add this to the App.xaml and remove the StartupUri line. When you add it, Visual Studio can create the event for you within the App.xaml.cs file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900