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

dynamic binding to .HorizontalAxis?

0 Answers 51 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 25 Sep 2012, 12:35 PM
Is something like this kind of sequence / syntax possible?

                binding = new Binding("dateTimeConverterTo");
                binding.Source = chart.Resources;
                chart.HorizontalAxis.SetValue(Axis.LabelFormatProperty, binding);

I get a run-time error of 'System.Windows.Data.Binding' is not a valid value for property 'LabelFormat'.

No answers yet. Maybe you can help?

Tags
ChartView
Asked by
Steven
Top achievements
Rank 1
Share this question
or