Hi
I have a
RadPieChart with a Doughnut series:
<telerik:RadPieChart
x:Name="PieChart">
<telerik:DoughnutSeries
x:Name="PieSeries1" ValueBinding="Value"
ItemsSource="{Binding Items}" InnerRadiusFactor="0.4"
RadiusFactor="0.8" DefaultSliceStyle="{StaticResource
PieSliceStyle}">
<telerik:PieSeries.LabelDefinitions>
<telerik:ChartSeriesLabelDefinition
Template="{StaticResource LabelTemplate1}"/>
</telerik:PieSeries.LabelDefinitions>
</telerik:DoughnutSeries>
</telerik:RadPieChart>
This is
the label template:
<DataTemplate x:Key="LabelTemplate1">
<TextBlock
Foreground="#FFB6B6B6"
Text="{Binding
Path=DataItem.Label}"
Visibility="{Binding Path=DataItem.Visibility}"
FontSize="18" FontFamily="Segoe
UI" TextAlignment="Center" />
</DataTemplate>
The data objects I bind to in the template implements “INotifyPropertyChanged” and the properties raise
the “PropertyChanged” event when changed. This works fine elsewhere.
The
labels gets their initial label text/visibility fine. But if I update the
values - it is not reflected to the labels.
I bind to the data objects in the “DefaultSliceStyle”
too and it works fine when updating.
Any
ideas why – and is there an alternative solution?
/Flemming