Update UI from multiple worker threads (.NET)

前端 未结 6 1374
清酒与你
清酒与你 2020-12-15 13:13

I have a pet project that I\'m working on that has multiple worker threads. Outputting everything to the console is getting hard to follow, so I want to develop a UI that wi

6条回答
  •  醉梦人生
    2020-12-15 13:58

    You can have your worker threads raise events and have the main UI thread add event handlers. You need to be careful you're not raising too many events as it could get ugly if your worker threads are raising multiple events per second.

    This article gives a quick overview.

提交回复
热议问题