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

    Hello,

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

    Thx,
    Danny
  2. Answer
    Giuseppe
    Admin
    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">
        <Grid.Resources>
            <Visibility x:Key="StripLinesVisibility">Visible</Visibility>
        </Grid.Resources>
     
        <telerik:RadChart x:Name="RadChart1">
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartArea Legend="{Binding ElementName=ChartLegend1}">
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX StripLinesVisibility="{StaticResource StripLinesVisibility}" />
                            </telerik:ChartArea.AxisX>
                            <telerik:ChartArea.DataSeries>
                                <telerik:DataSeries>
                                    <telerik:DataPoint YValue="21" />
                                    <telerik:DataPoint YValue="25" />
                                    <telerik:DataPoint YValue="30" />
                                    <telerik:DataPoint YValue="11" />
                                </telerik:DataSeries>
                            </telerik:ChartArea.DataSeries>
                        </telerik:ChartArea>
                    </telerik:ChartDefaultView.ChartArea>
                    <telerik:ChartDefaultView.ChartLegend>
                        <telerik:ChartLegend x:Name="ChartLegend1" />
                    </telerik:ChartDefaultView.ChartLegend>
                </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
        </telerik:RadChart>
    </Grid>



    Sincerely yours,
    Freddie
    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