コード例 #1
0
        private static void OnCurrentCountryPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            RegionPopup      popup      = source as RegionPopup;
            CountryViewModel animalType = (CountryViewModel)e.NewValue;

            popup.PopulateFromDb("");
        }
コード例 #2
0
        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 + ")" : "";
        }