WPF 中的 DoEvents

在看 MSDN 的时候发现了一段比较实用的代码,能在 WPF 下能执行与 System.Windows.Forms.Application.DoEvents方法类似的功能。以下对 MSDN 中的代码进行了微调,微调主要集中在 DispatcherPriority.SystemIdle 附近。

Text is available under CC BY-SA 4.0 license, unless otherwise noticed; additional terms may apply.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Content is available under CC BY-SA 3.0 unless otherwise noted.