You are developing a Windows Presentation Foundati...
单选题

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 controls event handler encounters an error, the subsequent handlers are not called. What should you do?()

发布日期:2020-04-10

A.Use handlers for a tunneling routed event and mark the event as handled in the case of a problem.

B.Use handlers for a tunneling routed event and make the event as handled in the finally portion of a try-catch-finally code block.

C.Use handlers for a bubbling routed event and mark the event as handled in the case of a problem.

D.Use handlers for a bubbling routed event and set the Handled property of the RoutedEventArgs object to true in the catch portion of a try-catch-finally code block.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定