//Constructor public PersonListViewModel(IRegionManager regionManager, IEventAggregator eventAggregator, IPersonService personService) { _rm = regionManager; _ps = personService; People = personService.GetAllPartialPeople(); PeopleView.Refresh(); PeopleView.Filter = PersonNameSearchFilter; NewPersonRequest = new InteractionRequest <INewPersonNotification>(); NewClientCommand = new DelegateCommand(CreateNewPerson); eventAggregator.GetEvent <PersonListSelectEvent>().Subscribe(NavigateToPersonEntry); }
private object RefreshView() { PeopleView.Refresh(); RaisePropertyChanged("PeopleView"); return(null); }