What is the use of a Dispatcher Object in WPF?

后端 未结 2 1848
不思量自难忘°
不思量自难忘° 2020-12-14 17:11

What is the use of a Dispatcher Object in WPF?

2条回答
  •  萌比男神i
    2020-12-14 17:53

    A dispatcher is often used to invoke calls on another thread. An example would be if you have a background thread working, and you need to update the UI thread, you would need a dispatcher to do it.

提交回复
热议问题