Where is the Application.DoEvents() in WPF?

Try something like this

public static void DoEvents()
{
    Application.Current.Dispatcher.Invoke(DispatcherPriority.Background,
                                          new Action(delegate { }));
}

Leave a Comment