Hi,
I need to bind a xamDataChart to a collection of objects of type "dynamic", but the chart doesn't draw the points. If I bind the collection to a DataGrid I can see the values of each dynamic object. My dynamic object has a class property "X", and for each serie that I add on runtime, I add a new property "Y" to my object:
X, Y1, Y2, ..., Yn
The xamDataChart supports binding to objects of type dynamic?
Thanks.
Are you just casting a normal class as dynamic in the collection, or are you using something like ExpandoObject? Is there a way you can share a sample of what you are trying to do? That would help us offer a solution. The chart does not currently try to inspect the IDynamicMetaObjectProvider interface for a truly dynamic object like ExpandoObject. If you tried to use reflection on this object yourself, you would have similar problems. We will have to add some extra functionality to allow you to use something like ExpandoObject with the chart directly. But there are various work arounds you could use. If you can provide a sample for me to look at we can discuss your options.
-Graham