public DeskTopNavigationMenuModel(IRegionNavigationService navigationService, IDialogService dialogService) { _navigationService = navigationService; _dialogService = dialogService; Tabs = UiComponents.GetNavigationButtonModelss(); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri) { this.NavigationService = navigationService; this.Uri = uri; this.Parameters = uri != null?UriParsingHelper.ParseQuery(uri) : null; }
public WhatsNew1(IDialogService dialogService, IRegionNavigationService navigationService, IModuleManager moduleManager) { this.dialogService = dialogService; this.navigationService = navigationService; this.moduleManager = moduleManager; InitializeComponent(); }
public void OnNavigatedTo(NavigationContext navigationContext) { logger.Trace("OnNavigatedTo"); _navigationService = navigationContext.NavigationService; _eventAggregator.GetEvent <PubSubEvent <string> >().Publish(nameof(ViewB)); }
public static void RequestNavigate( this IRegionNavigationService navigationService, Type targetType, NavigationParameters navigationParams = null) { navigationService.RequestNavigate(targetType.FullName, navigationParams); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="navigationParameters">The navigation parameters.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri, NavigationParameters navigationParameters) { NavigationService = navigationService; Uri = uri; Parameters = uri != null ? UriParsingHelper.ParseQuery(uri) : null; GetNavigationParameters(navigationParameters); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri) { this.NavigationService = navigationService; this.Uri = uri; this.Parameters = uri != null ? UriParsingHelper.ParseQuery(uri) : null; }
public void OnNavigatedTo(NavigationContext navigationContext) { mNavigationService = navigationContext.NavigationService; mEntriesHaveChanged = false; LoadData(); }
public void OnNavigatedTo(NavigationContext navigationContext) { TimerService.Start(); this.navigationService = navigationContext.NavigationService; if ((navigationContext.Parameters["subCategoria"] != null) && (!String.IsNullOrEmpty(navigationContext.Parameters["subCategoria"].ToString()))) { ((BusquedaCategoriaViewModel)this.DataContext).ShowEnteComercialsCommand.Execute( navigationContext.Parameters["subCategoria"].ToString()); return; } if ((navigationContext.Parameters["criterioLetter"] != null) && (!String.IsNullOrEmpty(navigationContext.Parameters["criterioLetter"].ToString()))) { ((BusquedaCategoriaViewModel)this.DataContext).ShowCategoriasByLetterCommand.Execute( navigationContext.Parameters["criterioLetter"].ToString()); return; } if ((navigationContext.Parameters["reset"] != null) && (!String.IsNullOrEmpty(navigationContext.Parameters["reset"].ToString()))) { if (navigationContext.Parameters["reset"].ToString() == "true") { ((BusquedaCategoriaViewModel)this.DataContext).Init(); return; } } }
public void OnNavigatedTo(NavigationContext navigationContext) { menu = new RTITCDashboard(); menu.AboutButton.Command = aboutCommand; navigationService = navigationContext.NavigationService; ribbonService.AddRibbonItem(menu, true); }
public void OnNavigatedTo(NavigationContext navigationContext) { TimerService.Start(); this.navigationService = navigationContext.NavigationService; if ((navigationContext.Parameters["criterio"] != null) && (!String.IsNullOrEmpty(navigationContext.Parameters["criterio"].ToString()))) { this.TextBoxSearch.Text = navigationContext.Parameters["criterio"].ToString(); ((BusquedaTecladoViewModel)this.DataContext).SearchEnteComercialsCommand. Execute(navigationContext.Parameters["criterio"]); return; } if ((navigationContext.Parameters["reset"] != null) && (!String.IsNullOrEmpty(navigationContext.Parameters["reset"].ToString()))) { if (navigationContext.Parameters["reset"].ToString() == "true") { this.TextBoxSearch.Text = ""; ((BusquedaTecladoViewModel)this.DataContext).Init(); return; } } }
public void OnNavigatedTo(NavigationContext navigationContext) { navigationService = navigationContext.NavigationService; string key = navigationContext.Parameters["Key"].ToString(); SetArea(key); }
void INavigationAware.OnNavigatedTo(NavigationContext navigationContext) { _regionNavigationService = navigationContext.NavigationService; _regionNavigationService.Navigate(MedicalInformationSystemRegions.ClassInfoRegion, MedicalInformationSystemViews.ClassInfoView); _regionNavigationService.Navigate(MedicalInformationSystemRegions.ReportsRegion, MedicalInformationSystemViews.ReportsView); _regionNavigationService.Navigate(MedicalInformationSystemRegions.EditRegion, MedicalInformationSystemViews.EditView); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="navigationParameters">The navigation parameters.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri, IDictionary <string, object> args) { NavigationService = navigationService; Uri = uri; Args = uri != null?UriParsingHelper.ParseQuery(uri) : null; GetNavigationArgs(args); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="navigationParameters">The navigation parameters.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri, NavigationParameters navigationParameters) { NavigationService = navigationService; Uri = uri; Parameters = uri != null?UriParsingHelper.ParseQuery(uri) : null; GetNavigationParameters(navigationParameters); }
public void Initialize(SplitView splitView, ContentControl rightPaneContentControl) { _splitView = splitView; RegionManager.SetRegionName(rightPaneContentControl, Regions.RightPane); RegionManager.SetRegionManager(rightPaneContentControl, _regionManager); _rightPaneNavigationService = _regionManager.Regions[Regions.RightPane].NavigationService; _splitView.PaneClosed += OnPaneClosed; }
public MasterDetailViewModel(IProjetoService projetoService, AppState appState, IRegionManager regionManager) { _appState = appState; _projetoService = projetoService; _navigationService = regionManager.Regions[Regions.Main].NavigationService; }
public ProjetoViewModel(IProjetoService projetoService, IDialogService dialogService, IRegionManager regionManager) { _projetoService = projetoService; _dialogService = dialogService; _navigationService = regionManager.Regions[Regions.Main].NavigationService; }
public void OnNavigatedTo(NavigationContext navigationContext) { Debug.WriteLine("NavigatedTo"); GetUserDataList(); this.navigationService = navigationContext.NavigationService; //公式参照するとこっちが書いてあるのでこっちでは?http://vdlz.xyz/Csharp/ToolKit/MVVM/Prism/Doc/DG50/DG50_005.html }
public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext) { if (navigationContext.Parameters != null && navigationContext.Parameters.Count() > 0) { var id = navigationContext.Parameters; } base.OnNavigatedTo(navigationContext); navigationService = navigationContext.NavigationService; }
public void OnNavigatedTo(NavigationContext navigationContext) { string ID = navigationContext.Parameters["ID"].ToString(); ((DatosClienteViewModel)DataContext).ShowEnteComercialCommand.Execute(ID); this.navigationService = navigationContext.NavigationService; navigationContext.NavigationService.Region.Context = this.DataContext; TimerService.Start(); }
public void OnNavigatedTo(NavigationContext navigationContext) { this.navigationService = navigationContext.NavigationService; if (this.DataContext == null) { this.DataContext = navigationContext.NavigationService.Region.Context; } TimerService.Start(); }
public ContentGridViewModel(ISampleDataService sampleDataService, IRegionManager regionManager) { _sampleDataService = sampleDataService; _regionManager = regionManager; if (regionManager.Regions.ContainsRegionWithName(Regions.Main)) { _navigationService = regionManager.Regions[Regions.Main].NavigationService; } }
public async void OnNavigatedTo(NavigationContext navigationContext) { _regionNavigationService = navigationContext.NavigationService; Student = (StudentViewModel)navigationContext.Parameters[NavigationParameterKeys.Student]; if (Student != null) { } }
public static void Navigate(this IRegionNavigationService regionNavigationService, string regionName, string viewToken, IReadOnlyDictionary <string, object> parameters) { var navigationParameters = new NavigationParameters(); parameters.ForEach(p => navigationParameters.Add(p.Key, p.Value)); regionNavigationService.Region.RegionManager.Regions[regionName].RequestNavigate(new Uri(viewToken, UriKind.Relative), navigationParameters); }
public void OnNavigatedTo(NavigationContext navigationContext) { Debug.WriteLine("OnNavigatedTo"); TodoDetailData todoDetailData = navigationContext.Parameters["SelectedDetailItem"] as TodoDetailData; this.navigationService = navigationContext.NavigationService; //公式参照するとこっちが書いてあるのでこっちでは?http://vdlz.xyz/Csharp/ToolKit/MVVM/Prism/Doc/DG50/DG50_005.html //画面遷移時のデータ取得(ここで良いのかな?) this.SelectedDetailItem = todoDetailData; }
public override void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext) { if (navigationContext.Parameters != null && navigationContext.Parameters.Count() > 0) { string id = navigationContext.Parameters["ID"].ToString(); var myParameter = navigationContext.Parameters["myObjectParameter"]; } base.OnNavigatedTo(navigationContext); navigationService = navigationContext.NavigationService; }
public PrismServices( IRegionManager regionManager, IRegionNavigationService navigationService, IModuleManager moduleManager, IDialogService dialogService) { this.RegionManager = regionManager; this.NavigationService = navigationService; this.ModuleManager = moduleManager; this.DialogService = dialogService; }
public void OnNavigatedTo(NavigationContext navigationContext) { _navService = navigationContext.NavigationService; //Get Navigation journal reference _journal = navigationContext.NavigationService.Journal; //Change command status GoAddItemCommand.RaiseCanExecuteChanged(); //this.ItemsCV = CollectionViewSource.GetDefaultView(ToDoItemList); this.ItemsCV.Refresh(); }
public UserDetailViewModel(IUserRepository userRepository, IRegionNavigationService navigationContext, IEventAggregator eventAggregator) : base(UserDetailValidation.Singleton.Value) { _userRepository = userRepository; _eventAggregator = eventAggregator; CreateCommands(); }
void INavigationAware.OnNavigatedTo(NavigationContext navigationContext) { if (_navigationService != null) { _navigationService.Region.NavigationService.Navigated -= NavigationServiceOnNavigated; _navigationService.Region.NavigationService.Navigating -= NavigationServiceOnNavigating; } _navigationService = navigationContext.NavigationService; _navigationService.Region.NavigationService.Navigated += NavigationServiceOnNavigated; _navigationService.Region.NavigationService.Navigating += NavigationServiceOnNavigating; }
public void OnNavigatedTo(NavigationContext navigationContext) { mNavigationService = navigationContext.NavigationService; if (mVMStateMachine.IsInState(VMState.Idle)) { mVMStateMachine.Fire(VMTrigger.Start); } else { mVMStateMachine.Fire(VMTrigger.Restart); } }
public void OnNavigatedTo(NavigationContext navigationContext) { _requestSeek = _player.DurationPlayed.TotalSeconds; RaisePropertyChanged("RequestSeek"); _appInactivityToken = _eventAggregator.GetEvent<ApplicationInactivityEvent>().Subscribe( OnApplicationInactivity, ThreadOption.PublisherThread, true); _navigationService = navigationContext.NavigationService; _player.Playlist.CurrentChanged += OnCurrentSongChanged; CurrentTrack = _player.Playlist.Current; foreach (var backgroundEffect in _backgroundEffects) { backgroundEffect.NavigatedTo(); backgroundEffect.OnTrackChanged(null, CurrentTrack != null ? CurrentTrack.Track : null); } }
public virtual void OnNavigatedTo(NavigationContext navigationContext) { this.NavigationService = navigationContext.NavigationService; this.OnPropertyChanged(() => this.CanGoBack); }
void INavigationAware.OnNavigatedTo(NavigationContext navigationContext) { _navigationService = navigationContext.NavigationService; foreach (var fileset in _filesetService.Filesets) { var viewModel = new FilesetViewModel(fileset); viewModel.PropertyChanged += OnFilesetPropertyChanged; _filesets.Add(viewModel); } _filesetAdded = _filesetService .FilesetAdded .ObserveOnDispatcher() .Subscribe(fileset => { var viewModel = new FilesetViewModel(fileset); viewModel.PropertyChanged += OnFilesetPropertyChanged; _filesets.Add(viewModel); Filesets.MoveCurrentTo(viewModel); }); _filesetRemoved = _filesetService .FilesetRemoved .ObserveOnDispatcher() .Subscribe(fileset => { var fs = _filesets.FirstOrDefault(fvm => fvm.Id == fileset.Id); if (fs != null) { fs.PropertyChanged -= OnFilesetPropertyChanged; _filesets.Remove(fs); } if (Filesets.IsEmpty) { _navigationService.Region.RegionManager.Regions[AppRegions.MainRegion] .RequestNavigate(typeof(IWelcomeView).Name); } }); Filesets = CollectionViewSource.GetDefaultView(_filesets); Filesets.GroupDescriptions.Add(new PropertyGroupDescription("Category")); Filesets.SortDescriptions.Add(new SortDescription("Category", ListSortDirection.Ascending)); Filesets.SortDescriptions.Add(new SortDescription("Name", ListSortDirection.Ascending)); Filesets.CurrentChanged += CurrentFilesetChanged; Filesets.MoveCurrentTo(null); Filesets.MoveCurrentToFirst(); }
public void OnNavigatedTo(NavigationContext navigationContext) { navigationService = navigationContext.NavigationService; Message = navigationContext.Parameters["MESSAGE"]; }
/// <summary> /// Initializes a new instance of the <see cref="ShellViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="signOffService">The sign off service.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="regionManager">The region manager.</param> /// <param name="regionNavigationService">The region navigation service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="eventAggregator">The event aggregator.</param> public ShellViewModel( IAccessControlManager accessControlManager, ISignOffService signOffService, IUserDialogService userDialogService, IRegionManager regionManager, IRegionNavigationService regionNavigationService, INavigationService navigationService, ICommandFactory commandFactory, IEventAggregator eventAggregator) { _regionManager = regionManager; _signOffService = signOffService; _userDialogService = userDialogService; _regionNavigationService = regionNavigationService; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory ); OpenMessageCenterWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenMessageCenterWorkspaceCommand, ExecuteOpenMessageCenterWorkspace); OpenPatientAccessHistoryWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenPatientAccessHistoryWorkspaceCommand, ExecuteOpenPatientAccessHistoryWorkspace ); OpenInteroperabilityWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenInteroperabilityWorkspaceCommand, ExecuteOpenInteroperabilityWorkspace ); OpenAgencyWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenAgencyWorkspaceCommand, ExecuteOpenAgencyWorkspaceCommand ); OpenPatientListCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenPatientListCommand, ExecuteOpenPatientListCommand ); OpenPatientReminderCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenPatientReminderCommand, ExecuteOpenPatientReminderCommand ); OpenMuObjectivesCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenMuObjectivesCommand, ExecuteOpenMuObjectivesCommand ); OpenCdsEditorCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenCdsEditorCommand, ExecuteOpenCdsEditorCommand ); OpenReportsWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenReportsWorkspaceCommand, ExecuteOpenReportsWorkspaceCommand ); OpenRoleManagementWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand ( () => OpenRoleManagementWorkspaceCommand, ExecuteOpenRoleManagementWorkspaceCommand ); OpenBillingWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenBillingWorkspaceCommand, ExecuteOpenBillingWorkspaceCommand); OpenBillingAdministrationWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenBillingAdministrationWorkspaceCommand, ExecuteOpenBillingAdministrationWorkspaceCommand, () => _hasBillingOffice); LogoutCommand = commandFactoryHelper.BuildDelegateCommand ( () => LogoutCommand, ExecuteLogout ); _regionNavigationService.NavigationFailed += RegionNavigationFailed; ApplyContextChanges = true; _regionManager.RegisterViewWithRegion ( "WorkspacesRegion", typeof( HomePageView ) ); eventAggregator.GetEvent<HasBillingOfficeEvent>().Subscribe(HandleHasBillingOfficeEvent, true); }
void INavigationAware.OnNavigatedTo(NavigationContext navigationContext) { _navigationService = navigationContext.NavigationService; _radio.CurrentTrackChanged += RadioOnCurrentTrackChanged; _radio.UpcomingTrackChanged += RadioOnUpcomingTrackChanged; _radio.TrackStreamQueued += RadioOnTrackStreamQueued; if (_radio.CurrentTrack != null) { HasTrack = true; QueryForBackdrop(_radio.CurrentTrack.Artist); } RefreshCommands(); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationContext"/> class for a region name and a /// <see cref="Uri"/>. /// </summary> /// <param name="navigationService">The navigation service.</param> /// <param name="uri">The Uri.</param> public NavigationContext(IRegionNavigationService navigationService, Uri uri) : this(navigationService, uri, null) { }
void INavigationAware.OnNavigatedTo(NavigationContext navigationContext) { _navigationService = navigationContext.NavigationService; }