Microsoft
70-511 · Question #59
You are developing a Windows Presentation Foundation (WPF) application. An event triggers a workflow such that a parent control executes the event handlers before the child controls. You need to…
The correct answer is D. Use handlers for a bubbling routed event and set the Handled property of the. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. An event triggers a workflow such that a parent control executes the event handlers before the child controls. You need to ensure that if a parent control's event handler encounters an error, the subsequent handlers are not called. What should you do?
Options
- AUse handlers for a tunneling routed event and mark the event as handled in the case of a
- BUse handlers for a tunneling routed event and mark the event as handled in the finally
- CUse handlers for a bubbling routed event and mark the event as handled in the case of a
- DUse handlers for a bubbling routed event and set the Handled property of the
How the community answered
(42 responses)- A2% (1)
- B5% (2)
- C10% (4)
- D83% (35)
Community Discussion
No community discussion yet for this question.