WPF中分派器对象的用途是什么? [英] What is the use of a Dispatcher Object in WPF?

查看:98
本文介绍了WPF中分派器对象的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WPF中分派器对象有什么用途?

What is the use of a Dispatcher Object in WPF?

推荐答案

分派器通常用于在另一个线程上调用调用。例如,如果有一个后台线程正在工作,并且需要更新UI线程,则需要一个分派器来完成它。

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.

这篇关于WPF中分派器对象的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆