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