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}" />