如何显示没有标题的 UWP 启动画面?

How to show UWP splash screen without title?

Microsoft Store 是标题,在启动画面期间不会出现。但在我们的应用程序中,启动画面包含标题。如何让它在闪屏上消失?我们正在使用 Xamarin.Forms UWP 项目。

上图设置ExtendViewIntoTitleBar为true隐藏标题,可以在UWP客户端app的OnLaunched方法中调用以下方法隐藏标题,下次启动时生效.更多详情请参考Title bar customization

private void extendAcrylicIntoTitleBar()
{
    CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
    ApplicationViewTitleBar titleBar =
    ApplicationView.GetForCurrentView().TitleBar;
    titleBar.ButtonBackgroundColor = Colors.Transparent;
    titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
}


 protected override void OnLaunched(LaunchActivatedEventArgs e)
 {
     extendAcrylicIntoTitleBar();
     .............
 }