public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true; //remove the solid-colored backgrounds behind the caption controls and system back button ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar; titleBar.ButtonBackgroundColor = Colors.Transparent; titleBar.ButtonInactiveBackgroundColor = Colors.Transparent; // TODO: add your long-running task here if (!SessionState.ContainsKey("State")) { SessionState.Add("State", new XWingSessionState(await XWingRepository.CreateXWingRepository())); } //await NavigationService.NavigateAsync(typeof(Views.Shell)); }
public bool IsSquadronSaved() { return(XWingRepository.IsSquadronSaved(ActiveSquadron.Squadron.Id)); }