Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of LaunchPageViewModel with the given NavigationService.
 /// </summary>
 /// <param name="navService">The NavigationService used </param>
 /// <param name="FinishedUri">The Uri to navigate to when this ViewModel
 /// has finished downloading and storing all the initial categories.</param>
 public LaunchPageViewModel()
 {
     LoadContent = new ContentLoader();
     LoadInitialCategories();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Event handler called when all downloads have successfully finished.
 /// </summary>
 /// <param name="sender">The sender of this event handler.</param>
 /// <param name="e">The EventArgs for this handler.</param>
 private void OnAllDownloadsFinished(object sender, ContentLoader.LoadingFinishedEventArgs e)
 {
     Dispatcher.BeginInvoke(
         () =>
         {
             NavigationService.Navigate(new Uri("/Main", UriKind.Relative));
             ClosePopup();
         });
 }