NicolTIP#027: How to update the UI from a worker thread on Windows Phone 7?
Use “Deployment.Current.Dispatcher.BeginInvoke”.
sample:
Deployment.Current.Dispatcher.BeginInvoke(delegate()
{
LoadingBar = Visibility.Collapsed;
});
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Use “Deployment.Current.Dispatcher.BeginInvoke”.
sample:
Deployment.Current.Dispatcher.BeginInvoke(delegate()
{
LoadingBar = Visibility.Collapsed;
});