protected override async void LoadState(LoadStateEventArgs e) { if (e.PageState != null) { if (e.PageState.ContainsKey("ItemId")) this.DataContext = new ItemPageViewModel() { Item = await wallabagDataSource.GetItemAsync(e.PageState["ItemId"] as string) }; } }
protected override void LoadState(LoadStateEventArgs e) { if (e.PageState != null) { // Load the selected pivot item via the index. if (e.PageState.ContainsKey("SelectedPivotItem")) mainPivot.SelectedIndex = (int)e.PageState["SelectedPivotItem"]; } base.LoadState(e); }
void navigationHelper_LoadState(object sender, LoadStateEventArgs e) { LoadState(e); }
protected virtual void LoadState(LoadStateEventArgs e) { }