This is a migrated thread and some comments may be shown as answers.

Bind ChartSeriesLabelDefinitions

1 Answer 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oleg
Top achievements
Rank 1
Oleg asked on 03 Dec 2013, 10:10 AM
I have 5 barseries with the same label definitions.
How can i reuse it?
<telerikChart:BarSeries.LabelDefinitions>
  <telerikChart:ChartSeriesLabelDefinition VerticalAlignment="Center" HorizontalAlignment="Right">
          <telerikChart:ChartSeriesLabelDefinition.Template>
             <DataTemplate>
                <TextBlock Margin="12,0,0,0" Text="{Binding}"/>
             </DataTemplate>
       </telerikChart:ChartSeriesLabelDefinition.Template>
   </telerikChart:ChartSeriesLabelDefinition>
</telerikChart:BarSeries.LabelDefinitions>

I tried to declare class - collection : List<LabelDefinition>
but i can't bind it to BarSeries.LabelDefinitions because it says - read only

1 Answer, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 03 Dec 2013, 03:34 PM
Hello, Oleg

You can't reuse the whole LabelDefinition. You can only reuse the data template by putting it into the resources section and using it later as StaticResource.

Please let us know if you need more help.

Regards,
Valentin.Stoychev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Oleg
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or