private static void OnSelectionPaletteChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { RadChartBase chart = target as RadChartBase; chart.selectionPaletteCache = args.NewValue as ChartPalette; chart.ProcessPaletteChanged(true); }
private static void UpdateSelectionPalette(RadChartBase chart, PredefinedPaletteName paletteName) { if (chart.GetValue(RadChartBase.SelectionPaletteProperty) == null) { chart.selectionPaletteCache = ChartPalettes.FromPredefinedName(paletteName); chart.ProcessPaletteChanged(true); } }
private static void OnPaletteChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { RadChartBase chart = target as RadChartBase; chart.paletteCache = args.NewValue as ChartPalette; if (chart.paletteCache == null) { UpdatePalette(chart, chart.PaletteName); } chart.ProcessPaletteChanged(true); }