I upgraded to the latest 2010 WPF RadCharts and the custom colors for the series are not displayed anymore. I was doing this for a pie chart and a bar chart that needed specific green and red colors. Now it displays what I assume is the default colors. Here is the style for the pie chart, it is similar for the bar chart. How do I get this to work with the new Charting.
<Grid.Resources> |
<SolidColorBrush x:Key="CustomBrush" Color="#FF4ED843" /> |
<SolidColorBrush x:Key="CustomBrush2" Color="#FFFF9393" /> |
<TelerikCharting:StylesPalette x:Key="{TelerikControls:ThemeResourceKey ElementType={x:Type TelerikCharting:ChartArea}, ResourceId={x:Static TelerikCharting:ResourceHelper.ResourceKeyRadialStyle}, ThemeType={x:Type TelerikControls:Office_BlackTheme}}"> |
<Style TargetType="{x:Type Shape}"> |
<Setter Property="Stroke" Value="Gray" /> |
<Setter Property="StrokeThickness" Value="1" /> |
<Setter Property="Fill" Value="{DynamicResource CustomBrush}" /> |
</Style> |
<Style TargetType="{x:Type Shape}"> |
<Setter Property="Stroke" Value="Gray" /> |
<Setter Property="StrokeThickness" Value="1" /> |
<Setter Property="Fill" Value="{DynamicResource CustomBrush2}" /> |
</Style> |
</TelerikCharting:StylesPalette> |
</Grid.Resources> |