启动页:
方法一:
在App.xaml文件中修改StartupUri的值。
方法二:在App.xaml.cs 后台代码中声明Main()方法、
[STAThread]
static void Main()
{
Window2 win = new Window2();
Application app = new Application();
app.Run(win);
}
方法三:
[STAThread]
static void Main()
{
Window2 win = new Window2();
Application app = new Application();
app.MainWindow = win; win.Show();
app.Run();
}
方法四:
[STAThread]
static void Main()
{
Application app = new Application();
app.StartupUri = new Uri(“Window2.xaml”, UriKind.Relative);
app.Run();
}
转自https://blog.csdn.net/educast/article/details/8194610