【WPF】设置起始窗口

 

1 <Application x:Class="BlendWPF.App"
2              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4              xmlns:local="clr-namespace:BlendWPF"
5              Startup="Application_Startup">
6 </Application>
App.xaml

 

 1 using System.Windows;
 2 
 3 namespace BlendWPF
 4 {
 5     /// <summary>
 6     /// App.xaml 的交互逻辑
 7     /// </summary>
 8     public partial class App : Application
 9     {
10         private void Application_Startup(object sender, StartupEventArgs e)
11         {
12             View.Login.LoginView login = new View.Login.LoginView();
13             login.Show();
14         }
15     }
16 }    
App.xaml.cs

猜你喜欢

转载自www.cnblogs.com/uing/p/11833270.html