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
335
Binding Dataset to chart in Xaml?
posted

Is it possible to bind xamchart to a dataset in Xaml? I noticed the documentation provides this through procedural code only. Being a newbie with Xaml, can someone please provide an example?

I have set chart.datacontext = dataset

 but how can I set the dataset to fill in the datapoints in Xaml without having to do it with code?

Thanks

 

Parents
  • 12773
    posted

    Hello,

    You can set the data source in the Xaml using a resource class.
    Here is attached sample how to bind dataset as DataSource completely using the XAML and set the mappings to different value  of the chart’s series.

    I hope this helps.

    Best regards,
    Dimi
    Developer Support Engineer

    Infragistics Inc.

    WpfDataSetChart.zip
Reply Children
No Data