private void HideLoginCommandAction() { this.TopAppBarUserControl = new ModernCSApp.Views.Toolbars.AppBarDemo01() { }; this.TopAppBarIsVisible = true; this.BottomAppBarUserControl = null; this.BottomAppBarIsVisible = false; if (PopupService.HasPopup) { PopupService.CloseAll(); } }