private static void OnCurrentMunicipalityPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { CityPopup popup = source as CityPopup; MunicipalityViewModel animalType = (MunicipalityViewModel)e.NewValue; popup.PopulateFromDb(""); }
private static void OnCurrentCityPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { CityPopup popup = source as CityPopup; CityViewModel city = (CityViewModel)e.NewValue; popup.txtCity.Text = city != null ? city.ZipCode + " (" + city.Name + ")" : ""; }