Skip to content

Instantly share code, notes, and snippets.

@BrightShadow
Created May 17, 2017 07:29
UIDispatcher class for WPF example
class UIDispatcher
{
public void BeginInvoke(Delegate method, params object[] args)
{
if ( Application.Current != null )
{
Application.Current.Dispatcher.BeginInvoke(method, DispatcherPriority.Normal, args);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment