PrepAway - Latest Free Exam Questions & Answers

You need to ensure that portions of the app can be reused in WinRT, Windows Presentation Foundation (WPF), Mic

You are developing a Windows Store app that will read data from a file that is stored on a
hard disk. The app will display that data on the screen.
You need to ensure that portions of the app can be reused in WinRT, Windows Presentation
Foundation (WPF), Microsoft Silverlight, and Windows Phone apps.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a page and a ViewModel object. Set the page’s DataContext property to reference
the ViewModel object. Program the ViewModel object to load data from the file and populate
its properties with that data. Program the page to consume the data by using data binding.

B.
Create a page and a ViewModel object. Program the page to use the Loaded event to
load data from the file and then update the page contents to reflect the data from the file.
Program the ViewModel object to use the Windows.Data.FileLoader class to populate its
properties from the file.

C.
Create a page, a ViewModel object, and a FileHelper class. Set the page’s DataContext
property to reference the ViewModel object. Program the ViewModel object to use the
FileHelper class to load data from the file, and populate its properties with that data.
Program the page to consume the data by using data binding.

D.
Create a page and a ViewModel object. Set the page’s DataContext property to reference
the ViewModel object. Program the page so that its Loaded event reads data from the file
and populates the properties of the ViewModel object with that data. Program the page to
consume the data by using data binding.


Leave a Reply