protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar(); coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged; // disabling back button var frame = this.Frame; frame.BackStack.Clear(); var t = ProjectPad.Business.ProjectPadApplication.Instance.HasToken; if (!t) { // starts animation for login StartNonConnected.Begin(); } else { } if (App.ActivatedProject != null) { string s = App.ActivatedProject; App.ActivatedProject = null; await OpenProject(s); } }
protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar(); await RefreshCultureCombo(); await RefreshAdoPanel(); KeyboardAccelerator GoBack = new KeyboardAccelerator(); GoBack.Key = VirtualKey.GoBack; GoBack.Invoked += GoBack_Invoked; SystemNavigationManager.GetForCurrentView().BackRequested += SettingsPage_BackRequested; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); var anim = ConnectedAnimationService.GetForCurrentView().GetAnimation("pageTitleAnimation"); if (anim != null) { anim.TryStart(stkTitrePage); } txtProjectName.Focus(FocusState.Keyboard); Bindings.Update(); txtProjectName.SelectAll(); CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar(); await ProjectPadApplication.Instance.RefreshRecent(); var rct = ProjectPadApplication.Instance.RecentProjects; RecentProjects = rct; Bindings.Update(); if (e.Parameter != null && e.Parameter is ShareOperation) { await HandleDataShare(e.Parameter as ShareOperation); } else { } }