This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18944|Reply: 1

[WPF] The main window opens when the WPF login window is closed

[Copy link]
Posted on 12/18/2017 10:17:32 PM | | |
In WPF, the main window is opened when the login window is closed, and the automatically generated App.xaml cannot meet the requirements.

1. Set the generation operation in the App.xaml properties window to None

2. Add the Program class

This way, the requirements can be met

Reference: http://www.mysjtu.com/page/M0/S613/613036.html



Method 2:

Recently, I looked at a method, without adding the Program method, the code is as follows:

The running time of the process is controlled through the Application's ShutdownMode.





Previous:WPF RelayCommand
Next:How WPF modifies the property values of a control template at runtime
Posted on 2/22/2018 10:59:19 AM |
Thank you for sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com