示例#1
0
        private static void OnSelectionPaletteChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
        {
            RadChartBase chart = target as RadChartBase;

            chart.selectionPaletteCache = args.NewValue as ChartPalette;
            chart.ProcessPaletteChanged(true);
        }
示例#2
0
 private static void UpdateSelectionPalette(RadChartBase chart, PredefinedPaletteName paletteName)
 {
     if (chart.GetValue(RadChartBase.SelectionPaletteProperty) == null)
     {
         chart.selectionPaletteCache = ChartPalettes.FromPredefinedName(paletteName);
         chart.ProcessPaletteChanged(true);
     }
 }
示例#3
0
        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);
        }