Programming
WPF: Application.DoEvents()
by admin on Apr.19, 2012, under Programming
This is a small hack allowing you to use something such as Application.DoEvents() in your WPF application:
if (Application.Current != null) Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new ThreadStart(delegate { }));