WPF教程

WPF实现DoEventshtml教程

时间:2013-6-20 1:06:49  作者:WPF之家  来源:http://www.wpf123.com  查看:139  评论:0
内容摘要:  static void DoEvents()        {         &nb...
  
static void DoEvents()
        {
            DispatcherFrame frame = new DispatcherFrame(true);
            Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, (SendOrPostCallback)delegate(object arg)
            {
                DispatcherFrame fr = arg as DispatcherFrame;
                fr.Continue = false;
            }, frame);
            Dispatcher.PushFrame(frame);
        }

  调用:

  DoEvents();

本文来自soft2buy的博客,原文地址:http://blog.csdn.net/soft2buy/article/details/6576851


标签:content= 

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。本文出自“wpf之家”,请务必保留此出处:http://www.wpf123.com

相关评论
Copyright © 2009-2014 WPF之家(http://www.wpf123.com/) All rights reserved
 Powered by WPF之家
鄂ICP备13006396号