Ejemplo n.º 1
0
        private async Task LoadCity(City city)
        {
            await DetailsViewModel.GetData(city);

            _mainFrame.Navigate(new DetailsPage(DetailsViewModel));
        }
Ejemplo n.º 2
0
 public async void Initialize()
 {
     DetailsViewModel = new DetailsViewModel(new DarkSkyWeatherService());
     Cities           = new ObservableCollection <City>(await _countryService.GetData());
 }