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
1640
XamFinancialChart not updating with added stock data
posted

Hi,

I've been imitating the sample codes displaying stock data with XamFinancialChart.

But as in the uploaded codes, it doesn't show anything after I update the data in the viewmodel, neither in 2018.1 nor 2018.2. Did I miss something?

Thank you.

Manhattan.rar

  • 960
    Suggested Answer
    Offline posted

    Hello Shadowfax,

    The code tries to bind XamFinancialChart's ItemsSource to SelectedStock which is List<List<StockItem>>, but I guess that the item list to be bound to the chart is List<StockItem>, is it right?

    If it is the case, your code works expectedly only by changing it to bind ItemsSource to List<StockItem>.

    I hope this will help.