WPF - DispatcherHelper
来源:互联网 发布:cda数据分析师考试条件 编辑:程序博客网 时间:2024/06/05 11:42
类似System.Windows.Forms.Application.DoEvents 处理当前在消息队列中的所有消息
private static readonly DispatcherOperationCallback _exit_frame_callback = (state)=>{ var frame = state as DispatcherFrame; if( null == frame ) throw; frame.Continue = false; return null;};public static void DoEvents(){var frame = new DispatcherFrame();var exOperation = Dispatcher.CurrentDispatcher.BeginInvoke( DispatcherPriority.Background,_exit_frame_callback , frame );Dispatcher.PushFrame( frame );if( exOperation .Status != DispatcherOperationStatus.Completed){exOperation.Abort();}}
Created 2013.08.04 / Andy
- WPF - DispatcherHelper
- WPF
- WPF
- WPF
- WPF
- WPF
- WPF
- WPF
- WPF
- wpf
- wpf
- WPF
- WPF
- WPF
- WPF
- WPF
- WPF
- WPF
- 逐浪CMS建站专家发哥:新浪网改版的三言两语
- 提高你的Java代码质量吧:推荐在复杂字符串操作中使用正则表达式
- 阿里分布式数据库服务原理与实践
- spring restful实践(一)
- 应用程序池模板永久性缓存初始化失败
- WPF - DispatcherHelper
- arm-2009q1-203-arm-none-linux-gnueabi 安装
- php与js的区别
- 微信活动策划七个执行智慧
- FTP文件传输格式
- 嵌入式Modbus TCP通讯模块设计
- 机房收费重构版总结
- ADO Connection 对象
- svn lock