What should you recommend?

You are working with an existing Windows Presentation Foundation (WPF) application in
Microsoft Visual Studio 2010. The WPF application requires approximately one minute to
initialize before displaying its main window. You have the following requirements:
Immediately display a splash screen when the WPF application launches. Allow for the
display of an initialization progress bar on the splash screen. Close the splash screen when
the WPF application is ready to display the main window. You need to recommend an
approach for meeting the requirements. What should you recommend?

You are working with an existing Windows Presentation Foundation (WPF) application in
Microsoft Visual Studio 2010. The WPF application requires approximately one minute to
initialize before displaying its main window. You have the following requirements:
Immediately display a splash screen when the WPF application launches. Allow for the
display of an initialization progress bar on the splash screen. Close the splash screen when
the WPF application is ready to display the main window. You need to recommend an
approach for meeting the requirements. What should you recommend?

A.
Compile an image into the WPF application with a Build Action value of SplashScreen.

B.
Launch a custom splash screen by using a Window object. When the initialization
completes, launch the main window from the splash screen.

C.
Create a SplashScreen object. Display the object in the code-behind of the App.xaml file.

D.
Move the initialization code to the code-behind of the main window.

Explanation:



Leave a Reply 0

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