mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-06 01:30:52 +08:00
18 lines
417 B
C#
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(() => { }));
|
|
}
|
|
}
|
|
} |