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

RadChart ignores PaletteBrushes when using StyleManager.Theme

2 Answers 106 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Thorsten
Top achievements
Rank 1
Thorsten asked on 30 Nov 2010, 03:10 PM
Hi,

I want to use a custom color palette for my pie charts. But it never seemed to work until I finally figured out that one tiny setting on my RadChart was causing the trouble:

 

<telerik:RadChart UseDefaultLayout="False"
                  telerik:StyleManager.Theme="Windows7"
                  x:Name="radChart"
                  Grid.Row="1">
    <DockPanel>
        <telerik:ChartArea DockPanel.Dock="Left"
                            Width="150" Height="150"
                            LegendName="chartLegend"
                            x:Name="chartArea"/>
        <telerik:ChartLegend x:Name="chartLegend"/>
    </DockPanel>
</telerik:RadChart>

 

 


When I remove the theme from the XAML, everything works fine.

Did I miss something conc. themes and RadChart?

Thanks,
Thorsten

PS
I can post a working example, if required. Unfortunatly I can't upload it here.

 

2 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 03 Dec 2010, 09:29 AM
Hi Thorsten,

 Windows 7 is an exception to the rule. Because it uses a lot of gradients the Palette is virtually ignored. For the Palette to kick in you will need to use another theme.  All other themes support custom themes.
Please, excuse us for the inconvenience. Don't hesitate to contact us if you have other questions.

Regards,
Evgeni "Zammy" Petrov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Thorsten
Top achievements
Rank 1
answered on 03 Dec 2010, 11:10 AM
Thanks for the info, Zammy.

Since I want to use a custom palette for the pie chart, it doesn't really matter if I have to use a different theme.

Have a nice weekend!

Reg's
Thorsten

Tags
Chart
Asked by
Thorsten
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Thorsten
Top achievements
Rank 1
Share this question
or