**1.在app.xaml.cs文件中添加HideTitleBar方法.****
private void HideTitleBar()
{
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar;
titleBar.ButtonBackgroundColor = Colors.Transparent;
titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
}
2.在OnLaunched方法中引用Hide TitleBar
protected override void Onlaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame =Window.Current.Content as Frame;
if(rootFrame = = null)
{
roootFrame =new Frame();
rootFrame.NavigationFailed +=OnNavigationFailed;
if(e.PreviousExecutionState= =ApplicationExectionState.Terminated)
{
}
Window.Current.Content = rootFrame;
}
if(e.PrelaunchActivated == false)
{