Posted 8 February 2019, 12:21 am EST
Hello,
My application uses charts to display data. The charts need to be updated when the user selects a different data source. I noticed that when the user selected a different data source by clicking on a Button which in turn calls an event handler the chart were not being updated and started to behave erratically. However, when the user selected a different set of charts by selecting a different tab of a TabControl the charts were properly updated. I created a VB application that shows the same symptoms when a button is clicked and have attached the .xaml and .vb files. Basically the charts are properly updated when I set the btnClick variable to True in the Mult_Graphs Sub. When I set it to False and the user presses the Test button, which sets the btnClick variable to True and calls the same Subroutine, the charts display the same graphic with a different color but do not display the new data. By the way I noticed that when the application runs the Visual Studio Output console displays "1"s after the C1.WPF.SpreadSheet.C1Chart.4 and C1.WPF.SpreadSheet.C1Chart3D.4 loaded messages.
Thanks,
Luis Alvarezchart_files.zip