nerdexam
Microsoft

70-511 · Question #22

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

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.

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice
You use Microsoft .NET Framework 4 to create a Windows... | 70-511 Q#22 Answer | NerdExam