Which class should you recommend to prevent the exception?

You are designing a Windows Phone 7 application that uses a timer. The application throws an exception when trying to update the UI from a thread other than the UI thread. You need to ensure that the timer updates on the UI thread. Which class should you recommend to prevent the exception?

You are designing a Windows Phone 7 application that uses a timer. The application throws an exception when trying to update the UI from a thread other than the UI thread. You need to ensure that the timer updates on the UI thread. Which class should you recommend to prevent the exception?

A.
DispatcherTimer

B.
Timer

C.
Thread

D.
ThreadPool



Leave a Reply 0

Your email address will not be published. Required fields are marked *