How to start a UI thread in C#

前端 未结 4 1814
离开以前
离开以前 2021-01-02 12:09

I know I can start a new worker thread from with .NET. But how do I start a new UI thread (like in MFC)?

I don\'t mind if the solution is restricted to Windows boxes

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 12:20

    If you are interested in using WPF, check out MSDN's article WPF's Threading Model, in particular the "Multiple Windows, Multiple Threads" section. It details what you need to do to create a new Dispatcher and show a window on a new thread.

提交回复
热议问题