Пример #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MainPage()
 {
     InitializeComponent();
     DataContext = App.ViewModel;
     Resolver    = DeviceProperties.GetInstance();
     Loaded     += MainPage_Loaded;
 }
Пример #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;
        }