Exemplo n.º 1
0
 public MainPageViewModel(INavigationService navigationService, IContactProvider contactProvider)
     : base(navigationService)
 {
     Title = "Main Page";
     this.contactProvider = contactProvider;
     Contacts             = contactProvider.GetContactList();
     // Contacts = new ObservableCollection<Person>(Contacts.OrderBy(p => p.Name).ToList());
     NavigateToDetailsPageCommand = new DelegateCommand <Person>(NavigateToDetailsPage);
 }
Exemplo n.º 2
0
 public override void OnNavigatedTo(NavigationParameters parameters)
 {
     Contacts = contactProvider.GetContactList();
     base.OnNavigatedTo(parameters);
 }