public FlightDetails() { this.InitializeComponent(); this.DataContext = SharedContext.JsonContext; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public LogonPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; this.DataContext = this.pageContext; }
public Flights() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; // TODO: Change 5 - Setting the page's datacontext //this.DataContext = SharedContext.Context; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public Airlines() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.navigationHelper_LoadState; this.navigationHelper.SaveState += this.navigationHelper_SaveState; if (SharedContext.Context == null) { this.CreateContext(); } else { this.DataContext = SharedContext.Context; SharedContext.Context.IsStoreCreated = true; } #if WINDOWS_PHONE_APP ((AppBarButton)AppCommandBar.SecondaryCommands[0]).Visibility = Visibility.Visible; #endif }