public MainMapContentPage() { InitializeComponent(); var mainMapViewModel = new MainMapViewModel(appLanguage); this.BindingContext = mainMapViewModel; appSettings.BackGroundChangableViewModels.Add(mainMapViewModel); appSettings.FontChangableViewModels.Add(mainMapViewModel); appLanguage.MultilangualViewModels.Add(mainMapViewModel); contentProvider.WeatherUpdated += WeatherLoaded; }
public MainMapView() { InitializeComponent(); BindingContext = new MainMapViewModel(); }