Dispatcher.BeginInvoke and Dispatcher.Invoke
Diffrence Between Dispatcher.BeginInvoke and Dispatcher.Invoke In WPF. When do we use both the method with example.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Upendra Pratap ShahiPosted Jun 9, 2015, 4:54 AM
Shweta LodhaPosted Jun 9, 2015, 4:45 AM
Invoke is Synchronous whereas BeginInvoke is Asynchronous, which means in case of Invoke, control will not return to the calling object until the callback returns. If you are OK with blocking calls, then you can choose Invoke.
A nice sample code is given at: http://tech.pro/tutorial/800/working-with-the-wpf-dispatcher