示例#1
0
 public MainPage()
 {
     this.InitializeComponent();
     Current = this;
     PaneFrame.Navigate(typeof(MyPage.PanePage));
     MainFrame.Navigate(typeof(MyPage.OneToTwoPage));
 }
示例#2
0
 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();
 }
示例#3
0
        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;
        }
示例#4
0
 private void TryShowLanguagesPane()
 {
     PaneFrame.Navigate(typeof(LanguageCollectionViewPage), null, new SuppressNavigationTransitionInfo());
     IsPaneOpen = true;
 }