Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Setting IsTabStop does not work for XamDataChart and Series
posted

In the below xaml code the IsTabStop is set to false for the chart and series, but when tab key is pressed the tab navigation is still allowed on the chart and the series.

<ig:XamDataChart   Background="White"  Name="xamDataChart1" IsTabStop="False">                
               <ig:XamDataChart.Series>
                    <ig:SplineSeries ValueMemberPath="Value" IsTabStop="False"
                                     x:Name="Series2"
                                     ItemsSource="{Binding Data2}" 
                                     XAxis="{Binding ElementName=firstXAxis}"
                                     YAxis="{Binding ElementName=theYAxis}" />
                    <ig:SplineSeries ValueMemberPath="Value" IsTabStop="False"
                                     x:Name="Series1"
                                     ItemsSource="{Binding Data}"
                                     XAxis="{Binding ElementName=firstXAxis}"
                                     YAxis="{Binding ElementName=theYAxis}" />
                </ig:XamDataChart.Series>               
            </ig:XamDataChart>

Is there a way to handle the taborder index for the chart and series considering the option that the data for the series is fetched from database and binded in the codebehind?

Option to disable the tab navigation from code behind when not required?

e.g. xamDataChart1.IsTabStop = false;         
Series1.IsTabStop = false;
Series2.IsTabStop = false;

  • 22015
    posted

    Hello Prasad,

     Thank you for your post! I have been researching your issue and have created small sample for you, named xamDataChartIsTabStop. In the sample I use the code snipped you have sent in your e-mail. What I can suggest is to set the IsTabStop property of the CategoryX and NumericY Axes to false too. Also you can create a style for the markers of the series and set the IsTabStop property for them too.

    I have implemented this approach in the attached sample for you.

    Please refer to the attached sample and feel free to let me know if you have any further questions on the matter.

     

     

    xamDataChartIsTabStop.zip