private async void OnLoaded(object sender, RoutedEventArgs routedEventArgs) { CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; coreTitleBar.ExtendViewIntoTitleBar = true; //TitleBar.Height = coreTitleBar.Height; Window.Current.SetTitleBar(MainTitleBar); coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged; ProgramMenu.Closed += ProgramMenuOnClosed; var view = ApplicationView.GetForCurrentView(); view.TitleBar.ButtonBackgroundColor = Colors.Transparent; var showWelcome = StorageHelper.GetSetting("show-welcome", true); if (showWelcome) { var val = await WelcomeDialog.ShowAsync(); if (dontShowCb.IsChecked ?? false) { StorageHelper.StoreSetting("show-welcome", false, true); } } CustomInput.Focus(FocusState.Programmatic); }