Page 1 of 1

How to access LightningChart control in headless mode

Posted: Wed Nov 14, 2018 3:53 am
by Harry943
Hello,
I've created a LightningChart control in a STA Thread using headless mode, and can get image refresh on Window now by 'AfterRendering'. Then I need implement my own interaction on this 'Image' and push into the LightningChart control I've created in thread. But I can't access it because some thread safe stuff, I tried chart.Dispacher.Invoke(...), but the code doesn't executed. Is there any way I could interactive with LightningChart which is created in another STA Thread with headless mode? How can I access the LightningChart control cross Thread?

I think maybe LightningChart render engine is running on UI thread, so I create another thread for better performance.

Re: How to access LightningChart control in headless mode

Posted: Wed Nov 14, 2018 4:09 pm
by ArctionKestutis
Hello,
Please check User's Manual chapter 21. Headless mode and provided demo example. User Manual also cover requirements for Threads.
Hope this helps.