Microsoft
70-511 · Question #146
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 Dependency-Object class.
- BRegister a dependency property.
- CDeclare a new property.
- DDeclare a new property.
How the community answered
(22 responses)- A14% (3)
- B5% (1)
- C77% (17)
- D5% (1)
Community Discussion
No community discussion yet for this question.