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