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 billing information from a CSV file that is stored in local
storage. The app will display the billing 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 Billing ViewModel object. Setthe page’s DataContext property to reference the
BillingViewModel object. Program the page so that its Loaded event reads data from the file and populates
the properties of the Billing ViewModel object withthat file’s data. Program the page to consume the data by
using data binding.

B.
Create a page and a Billing 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 billing data from the file.
Program the Billing ViewModel object to use the Windows.Data.FileLoader class to populate its properties
from the file.

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

D.
Create a page and a BillingViewModel object. Set the page’s DataContext property to reference the
BillingViewModel object. Program the Billing 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.


Leave a Reply