コード例 #1
0
ファイル: HubPage.xaml.cs プロジェクト: sailigator/GoodReads
        public HubPage()
        {
            this.InitializeComponent();

            Current = this;

            // Hub is only supported in Portrait orientation
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

            this.NavigationCacheMode         = NavigationCacheMode.Required;
            this.DataContext                 = App.MainViewModel;
            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
コード例 #2
0
ファイル: HubPage.xaml.cs プロジェクト: sailigator/GoodReads
        public HubPage()
        {
            this.InitializeComponent();

            Current = this;

            // Hub is only supported in Portrait orientation
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

            this.NavigationCacheMode = NavigationCacheMode.Required;
            this.DataContext = App.MainViewModel;
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }