Ejemplo n.º 1
0
 public void UpdateProgress(NavigationEvent navigationEvent)
 {
     Dispatcher.Invoke(
         new Action(delegate
         {
             if (navigationEvent is BeginRequestNavigationEvent) BusyIndicator.IsBusy = true;
             if (navigationEvent is CompleteNavigationEvent) BusyIndicator.IsBusy = false;
         }));
 }
 /// <summary>
 /// Broadcasts a navigation event to all navigation progress listeners that were registered with the navigation factory.
 /// </summary>
 /// <param name="navigationEvent">The navigation event.</param>
 public void ReportProgress(NavigationEvent navigationEvent)
 {
     ((INavigationEvent) navigationEvent).Request = this;
     foreach (var listener in progressListeners)
     {
         listener.UpdateProgress(navigationEvent);
     }
 }