WPF Real Time Multithreaded Stock Trading Application

前端 未结 2 1261
执念已碎
执念已碎 2021-02-02 17:49

I am building a real-time multi-threaded application in WPF, but i am having difficulties in updating the UI.

I have a background worker thread that contains logic which

2条回答
  •  难免孤独
    2021-02-02 18:07

    You probably need to coalesce received events such that not every tick results in a GUI update. Batch them up if your GUI is already updating, and have the GUI process the next batch only when it's ready. If the feed is high-volume (frequently the case with active trade data updates) you will not be able to create a GUI that reflects every individual tick as its own self-contained refresh trigger.

提交回复
热议问题