public CountryDetailsViewModel()
        {
            XmlCountryService countryRepository = new XmlCountryService();
            CountryData country = countryRepository.GetCountryById(Navigation.Id);

            DataContext = country;
        }
Exemplo n.º 2
0
 public MainPageViewModel()
 {
     XmlCountryService countryRepository = new XmlCountryService();
     ListItemsSource = countryRepository.GetCountryList();
 }