I would like to bind the LegendLabel to a property in my ViewModel, something like:
<telerikCharting:SeriesMapping LegendLabel="{Binding ViewModelField}" >
But this doesn't work, the LegendLabel at runtime is "Series 0" and I get the following output:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=ViewModelField; DataItem=null; target element is 'SeriesMapping' (HashCode=6313943); target property is 'LegendLabel' (type 'String')
How should I go about doing this?
But this doesn't work, the LegendLabel at runtime is "Series 0" and I get the following output:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=ViewModelField; DataItem=null; target element is 'SeriesMapping' (HashCode=6313943); target property is 'LegendLabel' (type 'String')
How should I go about doing this?