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

Set Colors for all charts on a site

1 Answer 43 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 01 Feb 2011, 07:59 PM
Hello all,
I tried setting default properties for the charts on my site as a static resource in the App.xaml file of my project but the colors didn't seem to take.  I'm trying to avoid having to cut and paste the code below under every radChart I use.  Is there a better way to do this?
<telerik:RadChart.PaletteBrushes>
    <SolidColorBrush Color="{StaticResource Color1}" />
    <SolidColorBrush Color="{StaticResource Color2}" />
    <SolidColorBrush Color="{StaticResource Color3}" />
    <SolidColorBrush Color="{StaticResource Color4}" />
    <SolidColorBrush Color="{StaticResource Color5}" />
    <SolidColorBrush Color="{StaticResource Color6}" />
    <SolidColorBrush Color="{StaticResource Color7}" />
</telerik:RadChart.PaletteBrushes>

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 04 Feb 2011, 04:39 PM
Hi Sam,

Please review the attached project where the Color is defined as static resource. I hope this helps.

All the best,
Sia
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Sam
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or