I have a RadCartesianChart that I am binding with a set of various series. One set of series is for a collection of dynamic items (do not know ahead of time how many) and I am using "telerik:RadCartesianChart.SeriesProvider" and referencing the collection of dynamic elements using the ItemSource property. The other series are known ahead of time and I bind those directly to the chart using a named property in my view model. The chart displays the various series correctly.
My problem involves the radLegend. How do I bind my legend to both the items in the dynamic series and the named property so that the colors match?
What I need is a clear example where a series provider makes use of the LegendSettings property. I am trying this, but it does not work...
Elsewhere, the following is working in a regular series. Can I have both types of binding for a single RadLegend?
<telerik:AreaSeries.LegendSettings>
<telerik:SeriesLegendSettings Title="MyTitle" />
</telerik:AreaSeries.LegendSettings>
If you can include or point me to a WPF example (preferably not a silverlight one), that would be really helpful. Thanks.
My problem involves the radLegend. How do I bind my legend to both the items in the dynamic series and the named property so that the colors match?
What I need is a clear example where a series provider makes use of the LegendSettings property. I am trying this, but it does not work...
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Setter
Property
=
"LegendSettings"
Value
=
"{Binding name}"
/>
Elsewhere, the following is working in a regular series. Can I have both types of binding for a single RadLegend?
<telerik:AreaSeries.LegendSettings>
<telerik:SeriesLegendSettings Title="MyTitle" />
</telerik:AreaSeries.LegendSettings>
If you can include or point me to a WPF example (preferably not a silverlight one), that would be really helpful. Thanks.