Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Radchart

Answered Radchart

Feed from this thread
  • Bhakti avatar

    Posted on Jan 31, 2012 (permalink)

    Have the complete application with Microsoft theme. The Radchart legend forecolor needs to be same color as needed. It shows Black right now. How do I change the legend radchart forecolor or keys?
    The Legend Items are created dynamically. Pic of what needs changed color attached.
    Attached files

    Reply

  • Answer Vladimir Milev Vladimir Milev admin's avatar

    Posted on Feb 3, 2012 (permalink)

    Hi,

    You can do this by applying a legend item style:
    RadChart1.DefaultView.ChartLegend.Foreground = new SolidColorBrush(Colors.Red);
    RadChart1.DefaultView.ChartLegend.LegendItemStyle = this.Resources["legendItemStyle"] as Style;

    <UserControl.Resources>
        <Style x:Key="legendItemStyle" TargetType="telerik:ChartLegendItem" >
            <Style.Setters>
                <Setter Property="Foreground" Value="Red" />
            </Style.Setters>
        </Style>
    </UserControl.Resources>
    Greetings,
    Vladimir Milev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Bhakti avatar

    Posted on Feb 3, 2012 (permalink)

    thanks this worked for me. appreciate your help.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Radchart
Related resources for "Radchart"

WPF Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]