nerdexam
Microsoft

70-511 · Question #22

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow…

The correct answer is C. Declare a new property. See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. What should you do?

Options

  • AInherit the control class from the DependencyObject class.
  • BRegister a dependency property.
  • CDeclare a new property.
  • DDeclare a new property.

How the community answered

(34 responses)
  • A
    12% (4)
  • B
    3% (1)
  • C
    79% (27)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice