Files
2023-04-16 20:11:40 +08:00

18 lines
417 B
C#

namespace Fluent.Tests.Helper
{
using System;
using System.Windows.Threading;
public static class UIHelper
{
public static void DoEvents()
{
Dispatcher.CurrentDispatcher.DoEvents();
}
public static void DoEvents(this Dispatcher dispatcher)
{
dispatcher.Invoke(DispatcherPriority.Background, new Action(() => { }));
}
}
}