PrepAway - Latest Free Exam Questions & Answers

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a DataGrid named gridContacts that is data-bound to a collection of Contacts. Each item has the ContactName and Phone properties.
The DataGrid contains a column named ContactNameColumn that is bound to ContactName.
You write the following code fragment.
<DataTemplate x:Key=”PhoneTemplate”>
<TextBlock Text=”{Binding Phone}” />
</DataTemplate>
You need to ensure that the application meets the following requirements:
* Phone number is shown as a row detail when the row is selected.
* Only ContactName can be edited.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
“Set RowDetailsVisibilityMode for gridContacts to VisibleWhenSelected.
“Set the IsReadOnly property for gridContacts to False.
“Set the IsReadOnly property for ContactNameColumn to False.

B.
“Set RowDetailsVisibilityMode for gridContacts to VisibleWhenSelected.
“Set the IsReadOnly property for gridContacts to True.
“Set the IsReadOnly property for ContactNameColumn to False.

C.
“Set RowDetailsVisibilityMode for gridContacts to Visible.
“Set the IsReadOnly property for gridContacts to False.
“Set the IsReadOnly property for ContactNameColumn to False.

D.
“Set RowDetailsVisibilityMode for gridContacts to Collapsed.
“Set the IsReadOnly property for gridContacts to True.
“Set the IsReadOnly property for ContactNameColumn to False.


Leave a Reply