You need to ensure that users can continue to use the UI while ProcessData is running

You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. The user interface (UI) tier of the application will be
implemented in WPF. The middle tier of the application is implemented by using an existing
COM component. The middle tier contains a long-running method named ProcessData. You
need to ensure that users can continue to use the UI while ProcessData is running. What
should you do?

You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. The user interface (UI) tier of the application will be
implemented in WPF. The middle tier of the application is implemented by using an existing
COM component. The middle tier contains a long-running method named ProcessData. You
need to ensure that users can continue to use the UI while ProcessData is running. What
should you do?

A.
Call the DoEvents method of the Application class before invoking ProcessData.

B.
Call the Run method of the Dispatcher class before invoking ProcessData.

C.
Use an asynchronous worker thread to call ProcessData.

D.
Use the Invoke method of the Dispatcher class to call ProcessData.



Leave a Reply 0

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