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)- A12% (4)
- B3% (1)
- C79% (27)
- D6% (2)
Community Discussion
No community discussion yet for this question.