在WPF的用户线程中更新UI界面

  WPF 中 UI 线程队列由 Dispatcher 来管理和调度,因此当用户线程中更新 UI 时,必须经过 Dispatche 来调度,下面这个小例子将给用户展现如何在用户线程中更新当前的时间 .   前台的 XAML 代码以下: < Window x:Class = "ThreadInvoke.Window1"     xmlns = "http://schemas.microsoft.co
相关文章
相关标签/搜索