public override Task OnNavigatedToAsync(NavigationServiceNavigationEventArgs eventArgs)
 {
     _synchronizer.StartSync().DontAwait("Just let this go off and run in the background");
     _navigationService.NavigateToNewsFeed();
     _navigationService.ClearBackstack();
     return(base.OnNavigatedToAsync(eventArgs));
 }
 /// <summary>
 /// Invokes the <see cref="IHandleNavigatedFrom.OnNavigatedFromAsync"/> for the current <see cref="FrameworkElement.DataContext"/>.
 /// </summary>
 /// <param name="handler">The <see cref="IHandleNavigatedFrom"/> instance.</param>
 /// <param name="e">An object that contains the event data.</param>
 /// <returns>The <see cref="Task"/> object representing the asynchronous operation.</returns>
 protected virtual Task InvokeHandlerOnNavigatedFromAsync(IHandleNavigatedFrom handler, NavigationServiceNavigationEventArgs e) => handler.OnNavigatedFromAsync(e);
示例#3
0
 public override async Task OnNavigatedToAsync(NavigationServiceNavigationEventArgs eventArgs)
 {
     FeedItemSource = (await _dataCacheService.GetNewsFeeds(it => it.UnreadCount > 0)).OrderBy(ob => ob.Title).ToList().ToObservableCollection();
 }
 public virtual Task OnNavigatedFromAsync(NavigationServiceNavigationEventArgs eventArgs)
 => Task.CompletedTask;