Set Colors for all charts on a site

2 posts, 0 answers
  1. Sam
    Sam avatar
    1 posts
    Member since:
    Feb 2011

    Posted 01 Feb 2011 Link to this post

    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>
  2. Sia
    Admin
    Sia avatar
    745 posts

    Posted 04 Feb 2011 Link to this post

    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>>
Back to Top