wpf equivalent of doevents Edit

Pooran Prasad Rajanna | 09 September 2020 | 794

private void DoEvents()
{
  Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { }));
}

Simple isn't it ??