This is a migrated thread and some comments may be shown as answers.

RadChart ignores PaletteBrushes applied by style

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 06 Jul 2012, 11:37 AM

Dear support team,

I'm using the RadChart and want to define a global style for several charts. One of the properties to be set is the property PaletteBrushes.

As long as I apply the PaletteBrushes for the RadChart it works, but if I apply it by the style of the chart, the Brushes are not applied.

This one is working:

<telerik:BrushCollection x:Key="DashboardPaletteBrushes">
    <SolidColorBrush Color="Green" po:Freeze="True" />
    <SolidColorBrush Color="Yellow" po:Freeze="True" />
    <SolidColorBrush Color="Red" po:Freeze="True" />
</telerik:BrushCollection>
  
<telerik:RadChart PaletteBrushes="{StaticResource DashboardPaletteBrushes}" />

This one does not work:

<telerik:BrushCollection x:Key="DashboardPaletteBrushes">
    <SolidColorBrush Color="Green" po:Freeze="True" />
    <SolidColorBrush Color="Yellow" po:Freeze="True" />
    <SolidColorBrush Color="Red" po:Freeze="True" />
</telerik:BrushCollection>
  
<Style x:Key="DashboardChartStyle" TargetType="telerik:RadChart">
    <Setter Property="PaletteBrushes" Value="{StaticResource DashboardPaletteBrushes}" />
</Style>
  
<telerik:RadChart Style="{StaticResource DashboardChartStyle}" />

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 11 Jul 2012, 08:35 AM
Hello Frank,

Currently setting palette brush collection through style is not supported. Please excuse us for the inconvenience caused.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Frank
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or