Files
aistudio-wpf-diagram/Fluent.Ribbon/Fluent.Ribbon.Tests/Helper/UIHelper.cs
2021-07-23 09:42:22 +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(() => { }));
}
}
}