private static void OnCurrentCountryPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { RegionPopup popup = source as RegionPopup; CountryViewModel animalType = (CountryViewModel)e.NewValue; popup.PopulateFromDb(""); }
private static void OnCurrentRegionPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { RegionPopup popup = source as RegionPopup; RegionViewModel region = (RegionViewModel)e.NewValue; popup.txtRegion.Text = region != null ? region.RegionCode + " (" + region.Name + ")" : ""; }