This project is read-only.

Cannot bind to dynamic objects?


I have some code using a WPF.AreaSeries where the ItemsSource was set to a collection of dynamic objects, and it crashes because:

Unhandled Exception: System.InvalidOperationException: Could not find data field Month on type System.Management.Automation.PSObject
at OxyPlot.Series.DataPointSeries.AddDataPoints(IList dest, IEnumerable itemsSource, String dataFieldX, String dataFieldY)

Where System.Management.Automation.PSObject is an IDynamicMetaObjectProvider.

I can bind labels and tables etc to those properties, so if this were a straight-up WPF data binding to the items in the ItemsSource, it would work -- it needs to work here! As it is, I'm forced to manually generate the DataPoint objects.