dynamic binding to .HorizontalAxis?

1 posts, 0 answers
  1. Steven
    Steven avatar
    22 posts
    Member since:
    May 2011

    Posted 25 Sep 2012 Link to this post

    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'.
Back to Top