This question is locked. New answers and comments are not allowed.
I have a datatemplate with a number of pie charts.
I'd like to show a legend with each one of them.
The samples show binding to a chart by name which is not available in the datatemplate.
Do you have any suggestions for how to bind the legend?
<DataTemplate x:Key="PieGraphTemplate1"> <Grid HorizontalAlignment="Left" Width="400" Height="400"> <Border> <TelerikChart:RadPieChart PaletteName="DefaultDark" Margin="10,0"> <TelerikChart:DoughnutSeries ItemsSource="{Binding Items}"> <TelerikChart:DoughnutSeries.ValueBinding> <TelerikChart:PropertyNameDataPointBinding PropertyName="Value"/> </TelerikChart:DoughnutSeries.ValueBinding> <TelerikChart:DoughnutSeries.LegendTitleBinding > <TelerikChart:PropertyNameDataPointBinding PropertyName="Name"/> </TelerikChart:DoughnutSeries.LegendTitleBinding> </TelerikChart:DoughnutSeries> </TelerikChart:RadPieChart> </Border> <TelerikPrimitives:RadLegendControl LegendProvider="{Binding ????}" > <TelerikPrimitives:RadLegendControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </TelerikPrimitives:RadLegendControl.ItemsPanel> <TelerikPrimitives:RadLegendControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Ellipse Fill="{Binding Fill}" Stroke="{Binding Stroke}" StrokeThickness="1" Width="20" Height="20"/> <TextBlock Text="{Binding Title}" Foreground="{Binding Fill}" Margin="10" FontStyle="Italic" FontSize="22"/> </StackPanel> </DataTemplate> </TelerikPrimitives:RadLegendControl.ItemTemplate> </TelerikPrimitives:RadLegendControl> </Grid> </DataTemplate>