In my class I need to use theObj.Dispatcher.InvokeAsync to get a valid ChartControl which is not null. That works fine.
However, having the ChartControl I then need to use the function GetValueByY, and that means access the scale by using ChartControl.ChartPanels[0].Scales[0] … Here is the problem! Scales[0] is null (ChartPanels[0] is valid).
I guess this is a multi-threading problem. If so, can anyone tell me how to the dispatcher/invoke code will look like to get a valid scale.
Thank you, AndBro
Comment