Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Databinding a chart to a List
posted

I have a general question on DataBinding that I'm hoping someone can answer, as  I can't find good information on the binding syntax for a List of objects.

I have a List of ActivityData objects.

That object looks like the following:

public class ActivityData

{

   public GeoPosition<GeoCoordinate> GeoPosition { get; set; }

   public Timestamp {get; set; }

}

I bind to the list of objects.  What I don't know is what the expression should be, e.g.

{Binding Timestamp} when the DataContext is set to the list results in a Binding expression error.  Moreover, the GeoPosition property returns deeper properties that I'm interested in, such as Location and Speed.  Does anyone know what the correct binding syntax would be for any of these cases?