nerdexam
Microsoft

70-511 · Question #44

70-511 Question #44: Real Exam Question with Answer & Explanation

Sign in or unlock 70-511 to reveal the answer and full explanation for question #44. The question stem and answer options stay visible for context.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application. You add the following code segment to the application. The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects. You add a TextBox control to the Window. You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object. You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A. Which binding expression should you use?

Exhibit

70-511 question #44 exhibit

Options

  • A{Binding Path=Data/Name, FallbackValue='N/A'}
  • B{Binding Path=Data.Name, FallbackValue='N/A'}
  • C{Binding Path=Data/Name, TargetNullValue='N/A'}
  • D{Binding Path=Data.Name, TargetNuliValue= 'N/A'}

Unlock 70-511 to see the answer

You've previewed enough free 70-511 questions. Unlock 70-511 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-511 Practice