How to access LightningChart control in headless mode

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Harry943
Posts: 6
Joined: Tue Dec 26, 2017 6:46 am

How to access LightningChart control in headless mode

Post by Harry943 » Wed Nov 14, 2018 3:53 am

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.

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: How to access LightningChart control in headless mode

Post by ArctionKestutis » Wed Nov 14, 2018 4:09 pm

Hello,
Please check User's Manual chapter 21. Headless mode and provided demo example. User Manual also cover requirements for Threads.
Hope this helps.