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>
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 }