Search code examples
windows-phone-7silverlight-4.0silverlight-toolkit

Accessing the UI object from a background thread


While developing an application for windows Phone 7.1 , i encountered the below problem.

I have separate thread for managing my views . And i want this to access the Navigation stack which is a part of the UI thread. How can i achieve this ?

I have a function in my view manager which gets triggerd every time a view change (navigation) occurs.

Any help ?


Solution

  • You could use the Deployment.Current.Dispatcher.BeginInvoke to execute the passed delegate on the UI thread. I am not clear about the specifics of your requirement. Could you add more context? Also, this question has more insight into it.