Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Set as default window in WPF application
WhatsApp
Purushottam Rathore
14y
29.6
k
0
2
25
Blog
By default you will get
App.xaml
as follows:
<
Application
x
:
Class
="Login_WPF.App"
xmlns
="
http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns
:
x
="
http://schemas.microsoft.com/winfx/2006/xaml
"
StartupUri
="
MainWindow.xaml
">
<
Application.Resources
>
</
Application.Resources
>
</
Application
>
In the above App.xaml default window is "Main Window". if you want to open "
Registration
" window first then change the StartUpUrl property of the application in App.xaml like as follows:
<
Application
x
:
Class
="Login_WPF.App"
xmlns
="
http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns
:
x
="
http://schemas.microsoft.com/winfx/2006/xaml
"
StartupUri
="
Registration.xaml
">
<
Application.Resources
>
</
Application.Resources
>
</
Application
>
Set as default window in WPF application
Up Next
WPF-Set Background color.
Ebook Download
View all
WPF Simplified: Build Windows Apps Using C# and XAML
Read by 1.5k people
Download Now!
Learn
View all
Membership not found