Ejemplo n.º 1
0
        public AboutPage()
        {
            this.InitializeComponent();

            Windows.ApplicationModel.Resources.ResourceLoader resourceLoader = new Windows.ApplicationModel.Resources.ResourceLoader();
            VersionNumberTextBlock.Text = string.Format(System.Globalization.CultureInfo.CurrentCulture, resourceLoader.GetString("VersionNumber/Text"), RetrieveVersionNumber());

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
Ejemplo n.º 2
0
        public PivotPage()
        {
            this.InitializeComponent();

            //this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            _resourceLoader = new ResourceLoader();
            DataContext = App.ViewModel;
            Resolver = DeviceProperties.GetInstance();
            Resolver.IsReadyChanged += OnPropertiesResolvedChanged;
            Loaded += OnPageLoaded;
            MyPivot.SelectionChanged += OnPivotSelectionChanged;
        }