/// <summary> /// Constructor. /// </summary> public MainPage() { InitializeComponent(); DataContext = App.ViewModel; Resolver = DeviceProperties.GetInstance(); Loaded += MainPage_Loaded; }
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; }