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

Setting visibility of AxisX.StripLinesVisibility in UserResources

1 Answer 27 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 30 Jul 2010, 09:35 AM
Hello,

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

Thx,
Danny

1 Answer, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 30 Jul 2010, 11:26 AM
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
Tags
Chart
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or