I am trying to translate the box plot demo into an implementation done using the XAML instead of the codebehind. I want to be able to reuse the chart and bind the series to different data, but in the XAML I cannot set the SeriesDefinition to a custom class. The code below:
gives me the following error:
Property 'SeriesDefinition' does not support values of type 'CustomCandleStickSeriesDefinition'
even though the class is a direct copy from the sample code. Am I missing a step somewhere? Any guidance would be appreciated, I am out of ideas.
<
telerik:RadChart
ItemsSource
=
"{Binding BpsSensitivityPer1StdDevMoveChartData}"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
EnableAnimations
=
"False"
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
bamcontrols:CustomCandleStickSeriesDefinition>
</
bamcontrols:CustomCandleStickSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
</
telerik:RadChart
>
gives me the following error:
Property 'SeriesDefinition' does not support values of type 'CustomCandleStickSeriesDefinition'
even though the class is a direct copy from the sample code. Am I missing a step somewhere? Any guidance would be appreciated, I am out of ideas.