Example #1
0
 private async void HotPage_Loaded(object sender, RoutedEventArgs e)
 {
     if (!hotVM.Loading && hotVM.Items == null)
     {
         await hotVM.GetPopular();
     }
 }
Example #2
0
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.NavigationMode == NavigationMode.New && hotVM.HotItems == null)
     {
         await hotVM.GetPopular();
     }
 }