mage -cc
November 18, 2008
December 13, 2007
WPF – DoEvents()
/// <summary>
/// Allows the completion of any UI processing
/// </summary>
private void DoEvents()
{
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { }));
}
December 12, 2007
WPF – Execute UI code in separate Thread
this.Dispatcher.Invoke(DispatcherPriority.Normal, (MyDelegate) delegate() { // Only if we should show progress if (_ShowProgress == true) { Wait.Visibility = Visibility.Visible; DoEvents(); } }