在App.xaml.cs中输入以下代码:在OOB客户端打开,可以实现窗口默认最大化;
private void Application_Startup(object sender, StartupEventArgs e)
{
if (IsRunningOutOfBrowser)
{
this.MainWindow.WindowState = WindowState.Maximized;
}
this.RootVisual = new MainPage();
}
{
if (IsRunningOutOfBrowser)
{
this.MainWindow.WindowState = WindowState.Maximized;
}
this.RootVisual = new MainPage();
}