PrepAway - Latest Free Exam Questions & Answers

Which XAML fragment should you insert between lines 06 and 07?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4. The application contains the following XAML fragment. (Line numbers are included for reference only.)

01 <Grid x:Name=”LayoutRoot” Background=”White”>
02 <Grid.Resources>
03 <vm:Customers x:Key=”CustomerVM”/>
04 <vm:MockCustomers x:Key=”MockCustomerVM”/>
05 </Grid.Resources>
06 <sdk:DataGrid AutoGenerateColumns=”True”
07 ItemsSource=”{Binding CustomerList}” />
08 </Grid>

You need to bind the DataGrid to the CustomerList property in MockCustomerVM at design time. You also need to bind the DataGrid to the CustomerList property in CustomerVM at run time. Which XAML fragment should you insert between lines 06 and 07?

PrepAway - Latest Free Exam Questions & Answers

A.
d:Data Context =” {Static Resource Mock Customer VM}” Data Context =”{Static Resource Customer VM}”

B.
DataContext=”{StaticResource MockCustomerVM}” d:DataContext=”{StaticResource CustomerVM}”

C.
Data Context =”{Static Resource Mock Customer VM }” ItemsControl.ItemsSource=”{StaticResource CustomerVM}”

D.
d:Data Context =”{Static Resource Mock Customer VM}” ItemsControl.ItemsSource=”{StaticResource CustomerVM}”


Leave a Reply