src/GenFx.Wpf.Tests/Helpers/DispatcherHelper.cs
/// <summary>
/// Invokes all remaining events queued on the <see cref="Dispatcher"/>.
/// </summary>
Invokes all remaining events queued on the .
Invokes all remaining events queued on the .
[SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
        public static void DoEvents()
        {
            DispatcherFrame frame = new DispatcherFrame();
            Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background,
                new DispatcherOperationCallback(ExitFrame), frame);
            Dispatcher.PushFrame(frame);
        }
[ SecurityPermission ( SecurityAction . Demand , Flags = SecurityPermissionFlag . UnmanagedCode ) ] public static void DoEvents ( ) { DispatcherFrame frame = new DispatcherFrame ( ) ; Dispatcher . CurrentDispatcher . BeginInvoke ( DispatcherPriority . Background , new DispatcherOperationCallback ( ExitFrame ) , frame ) ; Dispatcher . PushFrame ( frame ) ; }
Invokes all remaining events queued on the .
Invokes all remaining events queued on the .