wpf equivalent of doevents Edit

Pooran Prasad Rajanna | 09 September 2020 | 2040

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

Simple isn't it ??