private static void OnLandFillPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { WorldGlobe globe = d as WorldGlobe; Brush brush = e.NewValue as Brush; globe.landFill = brush; if (globe.LandPath != null) globe.LandPath.Fill = brush; }