public MainPage() { this.InitializeComponent(); Current = this; PaneFrame.Navigate(typeof(MyPage.PanePage)); MainFrame.Navigate(typeof(MyPage.OneToTwoPage)); }
public MainPage() { this.InitializeComponent(); ContentFrame.Navigate(typeof(TasksPage)); PaneFrame.Navigate(typeof(NewTaskPage)); SettingsPageFrame.Navigate(typeof(SettingsPage)); MainSplitView.RegisterPropertyChangedCallback(SplitView.IsPaneOpenProperty, IsPaneOpenPropertyChanged); MainSplitView.SizeChanged += (sender, e) => UpdatePaneWidth(); }
public MainPage() { string appClientId = "d9f9e643-c8d6-4eb7-b38e-1878674fc7be"; string[] scopes = new string[] { MicrosoftGraphScope.FilesReadWriteAll };; OneDriveService.Instance.Initialize (appClientId, scopes, null, null); ApplicationData.Current.LocalSettings.CreateContainer("signStateContainer", ApplicationDataCreateDisposition.Always); if (!(ApplicationData.Current.LocalSettings.Containers["signStateContainer"].Values["signState"] is bool)) { ApplicationData.Current.LocalSettings.Containers["signStateContainer"].Values["signState"] = false; } this.InitializeComponent(); var titleBar = ApplicationView.GetForCurrentView().TitleBar; titleBar.BackgroundColor = Colors.Pink; titleBar.ButtonBackgroundColor = Colors.Pink; ContentFrame.Navigate(typeof(ContentPage)); PaneFrame.Navigate(typeof(PanePage)); current = this; }
private void TryShowLanguagesPane() { PaneFrame.Navigate(typeof(LanguageCollectionViewPage), null, new SuppressNavigationTransitionInfo()); IsPaneOpen = true; }