private static void OnColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MarkerSymbol dp = d as MarkerSymbol; if (dp != null) { dp.OnPropertyChanged("Color"); } }
private static void OnSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MarkerSymbol symbol = d as MarkerSymbol; if (d == null) { return; } symbol.setOffset(); symbol.OnPropertyChanged("Size"); }