Setting visibility of AxisX.StripLinesVisibility in UserResources

2 posts, 1 answers
  1. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 30 Jul 2010 Link to this post


    Is it possible to set the AxisX.StripLinesVisibility in a Silverlight Resource Dictionary file or UserControl.Resources section?

  2. Answer
    Giuseppe avatar
    2363 posts

    Posted 30 Jul 2010 Link to this post

    Hello Danny,

    You can achieve the desired effect like this:

    <Grid x:Name="LayoutRoot" Background="White">
            <Visibility x:Key="StripLinesVisibility">Visible</Visibility>
        <telerik:RadChart x:Name="RadChart1">
                        <telerik:ChartArea Legend="{Binding ElementName=ChartLegend1}">
                                <telerik:AxisX StripLinesVisibility="{StaticResource StripLinesVisibility}" />
                                    <telerik:DataPoint YValue="21" />
                                    <telerik:DataPoint YValue="25" />
                                    <telerik:DataPoint YValue="30" />
                                    <telerik:DataPoint YValue="11" />
                        <telerik:ChartLegend x:Name="ChartLegend1" />

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top