Example #1
0
 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) };
     }
 }
Example #2
0
 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);
 }
Example #3
0
 void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     LoadState(e);
 }
Example #4
0
 protected virtual void LoadState(LoadStateEventArgs e)
 {
 }