Microsoft
70-511 · Question #15
You are developing a user control for a Windows Presentation Foundation (WPF) application. The user control contains a button. Both the user control and the hosting control must receive the button…
The correct answer is C. Use a standard Microsoft .NET event. See the full explanation below for the reasoning.
Question
You are developing a user control for a Windows Presentation Foundation (WPF) application. The user control contains a button. Both the user control and the hosting control must receive the button click event. You need to ensure that the user control responds to the button click event before the hosting control responds to the event. What should you do?
Options
- AUse a bubbling routed event.
- BUse a bubbling routed event.
- CUse a standard Microsoft .NET event.
- DUse a tunneling routed event.
How the community answered
(35 responses)- A6% (2)
- B11% (4)
- C80% (28)
- D3% (1)
Community Discussion
No community discussion yet for this question.