可学答题网 > 问答 > MCPD(70-511)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You use Microsoft .NET Framework 4 to


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?()

  • AtxtInput.TextChanged+=Audit_TextChanged;
  • BAddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);
  • CEventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);
  • D EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler (Audit_TextChanged), false)
参考答案
参考解析:
分类:MCPD(70-511)题库
相关推荐

1、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application displays a list of books.You wri...

2、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You add a property named ServiceContext to a co...

3、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application has multiple data entry windows....

4、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a Windows Forms application.You plan to use a Windows Presentation Foundation (WPF) control of the...

5、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a custom Windows Presentation Foundation (WPF) application.Your environment includes several WPF appl...

6、You use Microsoft .NET Framework 4 to

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You write the following code fragment. (Line num...