SeriesProvider not working for Derived BarSeries TargetType

2 posts, 0 answers
  1. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 22 May 2014 Link to this post

    We are getting Ui Automation related error using ScatterLineSeries and BarSeries..
    So I tried to create a class derived from BarSeries
    public class CustomLineSeries : LineSeries
           protected override AutomationPeer OnCreateAutomationPeer()
           {    return null;   }
    The issue is I cannot seem to get the series plotted when using derived BarSeries when I use the below code...
    Issue seems to be with the Style tageting CustomBarSeries... Removing this style I can see the BarSeries in chart.
    But the question is HOW do i set the Style of the derived BarSeries Class...

    <telerik:ChartSeriesProvider Source="{Binding Series}">
           <telerik:CategoricalSeriesDescriptor ItemsSourcePath="ChartsDataPoints" CategoryPath="X" ValuePath="Y" TypePath="SeriesType">
                   <Style TargetType="charts:CustomBarSeries">
                        <Setter Property="CombineMode" Value="None"/>
                        <Setter Property="DisplayName" Value="{Binding LegendTitle}"/>

    In code behind I had Set SeriesType as typeof(CustomBarSeries)....

    Have been breaking my head on this... any help is appreciated..
  2. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 22 May 2014 in reply to N Link to this post

    Please ignore, I missed something. It is working now after i made some xaml changes..
  3. DevCraft banner
Back to Top