EventArgs used with the Navigated event.
Inheritance: System.EventArgs
Beispiel #1
0
        void OnNavigated(object sender, RegionNavigationEventArgs e)
        {
            SearchText = string.Empty;

            _navigationService.ReportNavigation(e.Uri);
            //((DelegateCommand)OnHomeCommand).RaiseCanExecuteChanged();
            ((DelegateCommand)OnBackCommand).RaiseCanExecuteChanged();
            ((DelegateCommand)OnForwardCommand).RaiseCanExecuteChanged();
        }
Beispiel #2
0
 void NavigationService_Navigated(object sender, RegionNavigationEventArgs e)
 {
     if (e.NavigationContext.NavigationService.Journal.CanGoBack)
     {
         btnBack.Visibility = System.Windows.Visibility.Visible;
     }
     else
     {
         btnBack.Visibility = System.Windows.Visibility.Collapsed;
     }
 }
 public void MainContentRegion_Navigated(object sender, RegionNavigationEventArgs e)
 {
     this.UpdateNavigationButtonState(e.Uri);
 }
 private void OnViewRegionNavigating(object sender, RegionNavigationEventArgs e)
 {
     var region = RegionManager.Regions[AppRegions.MainRegion];
     var entry = region.NavigationService.Journal.CurrentEntry;
     if (entry != null)
     {
         if (entry.Uri.OriginalString.Contains(typeof(NowPlayingView).FullName))
         {
             region.NavigationService.Journal.GoBack();
         }
     }
 }
 public void MainContentRegion_Navigated(object sender, RegionNavigationEventArgs e)
 {
     _lastUri = e.Uri;
     OnClickCommand.RaiseCanExecuteChanged();
 }
        private void NavigationServiceOnNavigated(object sender, RegionNavigationEventArgs e)
        {
            var active = e.NavigationContext.NavigationService.Region.ActiveViews.FirstOrDefault() as FrameworkElement;

            if (active != null)
            {
                IRadioStation radioStation = active as IRadioStation;

                if (radioStation == null)
                {
                    radioStation = active.DataContext as IRadioStation;
                }

                if (radioStation != null)
                {
                    radioStation.OnTuneIn(e.NavigationContext);
                }
            }
        }
Beispiel #7
0
 void OnNavigated(object sender, RegionNavigationEventArgs e)
 {
     _navigationService.ReportNavigation(e.Uri);
     ((DelegateCommand)OnBackCommand).RaiseCanExecuteChanged();
     ((DelegateCommand)OnForwardCommand).RaiseCanExecuteChanged();
 }
 private void mediaFileBrowserContentRegion_Navigated(object sender, RegionNavigationEventArgs e)
 {
     if (MediaFileBrowserViewModel == null) return;
   
     if (e.Uri.ToString().StartsWith(typeof(MediaFileGridView).FullName))
     {
         MediaFileBrowserViewModel.ExpandCommand.IsExecutable = true;
         MediaFileBrowserViewModel.ContractCommand.IsExecutable = false;
     }
     else
     {
         MediaFileBrowserViewModel.ExpandCommand.IsExecutable = false;
         MediaFileBrowserViewModel.ContractCommand.IsExecutable = true;
     }
 }
        private void mediaFileBrowserContentRegion_Navigating(object sender, RegionNavigationEventArgs e)
        {
            if (MediaFileBrowserViewModel == null || RegionManager.Regions[RegionNames.MediaFileBrowserContentRegion].NavigationService.Journal.CurrentEntry == null) return;

            Uri currentUri = RegionManager.Regions[RegionNames.MediaFileBrowserContentRegion].NavigationService.Journal.CurrentEntry.Uri;

            if (currentUri.ToString().StartsWith(typeof(VideoView).FullName))
            {
                MediaFileBrowserViewModel.NavigateBackCommand = MediaFileBrowserViewModel.NavigateToVideoViewCommand;
            }
            else if (currentUri.ToString().StartsWith(typeof(ImageView).FullName))
            {
                MediaFileBrowserViewModel.NavigateBackCommand = MediaFileBrowserViewModel.NavigateToImageViewCommand;
            }
            else
            {
                MediaFileBrowserViewModel.NavigateBackCommand = MediaFileBrowserViewModel.NavigateToMediaFileGridCommand;
            }
        }
Beispiel #10
0
 private void NavigationServiceOnNavigating(object sender, RegionNavigationEventArgs regionNavigationEventArgs)
 {
     if (regionNavigationEventArgs.NavigationContext.Uri.OriginalString != ViewNames.StartView) return;
     var s = (FrameworkElement)_container.Resolve<object>(regionNavigationEventArgs.NavigationContext.NavigationService.Journal.CurrentEntry.Uri.OriginalString);
     var rtb = new RenderTargetBitmap((int)s.ActualWidth, (int)s.ActualHeight, 96, 96, PixelFormats.Pbgra32);
     rtb.Render(s);
     OverlayImage = rtb;
 }