移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The user control will be hosted in a window and will have handlers for the text-changed event of txtInput. You need to ensure that the application meets the following requirements: Creates a text-changed event handler named Audit_TextChanged for the txtInput control. Executes Audit_TextChanged even when specific handlers mark the event as handled. Which code segment should you add to the constructor of the user control?()

发布日期:2021-03-17

You use Microsoft .NET Framework 4 to create a Win...
A

txtInput.TextChanged+=Audit_TextChanged;

B

AddHandler(TextBox.TextChangedEvent, new  RoutedEventHandler(Audit_TextChanged), true);

C

EventManager.RegisterClassHandler(typeof(TextBox),  TextBox.TextChangedEvent, new  RoutedEventHandler(Audit_TextChanged), true);

D

EventManager.RegisterClassHandler(typeof(TextBox),  TextBox.TextChangedEvent, new  RoutedEventHandler (Audit_TextChanged), false);

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!