コード例 #1
0
ファイル: ItemPage.xaml.cs プロジェクト: wangjun/windows-app
 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) };
     }
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: wangjun/windows-app
 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);
 }
コード例 #3
0
ファイル: basicPage.cs プロジェクト: wangjun/windows-app
 void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     LoadState(e);
 }
コード例 #4
0
ファイル: basicPage.cs プロジェクト: wangjun/windows-app
 protected virtual void LoadState(LoadStateEventArgs e)
 {
 }