public WorldWeather() { InitializeComponent(); OpenWeatherMapService = new OpenWeatherMapService(); DataContext = this; OpenWeatherMapService.GetWeatherAsync(); }
public WorldWeather() { InitializeComponent(); OpenWeatherMapService = ViewModelSource.Create(() => new OpenWeatherMapService()); DataContext = this; OpenWeatherMapService.GetWeatherAsync(); }