This question is locked. New answers and comments are not allowed.
Hi,
I'm creating a dynamic chart using the SeriesProvider and required that each series will be displayed with different color.
Therefore, I created a CategoricalSeriesDescriptor for a LineSeries and tried to bind the Stroke property to a Brush value coming from the model.
After many failed test I found that even if I set the binding to some bogus name, the BindingFailed event is not being called, thus Binding does not even occur. Setting the value to a "real" color (not bound) works.
Could please assist?
<telerikChart:RadCartesianChart.SeriesProvider >
<telerikChart:ChartSeriesProvider Source="{Binding Trends}" x:Name="provider" >
<telerikChart:ChartSeriesProvider.SeriesDescriptors >
<telerikChart:CategoricalSeriesDescriptor ItemsSourcePath="Items" ValuePath="Value" CategoryPath="DateTime">
<telerikChart:CategoricalSeriesDescriptor.Style>
<Style TargetType="telerikChart:LineSeries">
<Setter Property="Stroke" Value="{Binding SeriesStroke}"/>
</Style>
</telerikChart:CategoricalSeriesDescriptor.Style>
</telerikChart:CategoricalSeriesDescriptor>
</telerikChart:ChartSeriesProvider.SeriesDescriptors>
</telerikChart:ChartSeriesProvider>
</telerikChart:RadCartesianChart.SeriesProvider>
Thank you,
Erez
I'm creating a dynamic chart using the SeriesProvider and required that each series will be displayed with different color.
Therefore, I created a CategoricalSeriesDescriptor for a LineSeries and tried to bind the Stroke property to a Brush value coming from the model.
After many failed test I found that even if I set the binding to some bogus name, the BindingFailed event is not being called, thus Binding does not even occur. Setting the value to a "real" color (not bound) works.
Could please assist?
<telerikChart:RadCartesianChart.SeriesProvider >
<telerikChart:ChartSeriesProvider Source="{Binding Trends}" x:Name="provider" >
<telerikChart:ChartSeriesProvider.SeriesDescriptors >
<telerikChart:CategoricalSeriesDescriptor ItemsSourcePath="Items" ValuePath="Value" CategoryPath="DateTime">
<telerikChart:CategoricalSeriesDescriptor.Style>
<Style TargetType="telerikChart:LineSeries">
<Setter Property="Stroke" Value="{Binding SeriesStroke}"/>
</Style>
</telerikChart:CategoricalSeriesDescriptor.Style>
</telerikChart:CategoricalSeriesDescriptor>
</telerikChart:ChartSeriesProvider.SeriesDescriptors>
</telerikChart:ChartSeriesProvider>
</telerikChart:RadCartesianChart.SeriesProvider>
Thank you,
Erez