DRAG DROP
You are developing a Windows Store app. The app uses a model that contains the following code:
You create a page named CustomerView. You define an object of type Customer named
CustomerData.
You need to display data from CustomerData.
You have the following XAML markup:
Which code snippets should you include in Target 1, Target 2, and Target 3 to complete the
XAML markup? (To answer, drag the appropriate code snippets to the correct targets in the
answer area. Each code snippet may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
DataContext={Binding CustomerData, ElementName=rootPage}
( )
-or-
DataContext={Binding Source={StaticResource customerData}}
(
)
<Page x:Name=rootPage …
<Page.Resources>
<local:CustomerData x:Key=”customerData” FirstName=”Joe” LastName=”Smith”/>
</Page.Resources>