private static void OnHeatMapWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HeatMap heatMap = d as HeatMap; if (heatMap != null && heatMap._heatMapImage != null) { heatMap._heatMapImage.Width = (double)e.NewValue; } }
private static void OnColorPointsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HeatMap heatMap = d as HeatMap; ObservableCollection <HeatMapPaletteColorPoint> oldColorPoints = e.OldValue as ObservableCollection <HeatMapPaletteColorPoint>; ObservableCollection <HeatMapPaletteColorPoint> newColorPoints = e.NewValue as ObservableCollection <HeatMapPaletteColorPoint>; if (newColorPoints != null) { } }