Idle loop to let events fire in the UI
Use SPARINGLY or not at all if there is a better way but there are a few places where this is required.
public static void DoEvents(Dispatcher dispatcher, DispatcherPriority priority)
See also:Class WindowUtilities
Comment or report problem with topic