I\'m building a chat client and am not 100% sure on how to use the dispatcher. So the question is I have a method as such:
dispatcher
public void LostConne
I had problems with Application.Current.Dispatcher.BeginInvoke and the object.Invoke() methods.
Application.Current.Dispatcher.BeginInvoke
object.Invoke()
This worked for me:
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => { // code... }));