重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
找答案首页 > 全部分类 > 计算机类考试
搜题
网友您好, 请在下方输入框内输入要搜索的题目:
搜题
题目内容 (请给出正确答案)
[主观题]

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) appli

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

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);

答案
B
更多“You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) appli”相关的问题

第1题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application contains an ObservableCollection object named Pictures that contains several Picture objects.Each Picture object contains the Name and PictureFilePath properties.You add a ListBox control to the application.You need to ensure that the pictures are displayed in the ListBox control.Which code fragment should you use?()

A.

B.

C.

D.

点击查看答案

第2题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that allows users to arrange images.You need to ensure that users can arrange child elements in a panel without affecting the size of the elements.You also need to ensure that child elements are oriented horizontally.Which control should you use?()

A.ListBox

B.DockPanel

C.WrapPanel

D.StackPanel

点击查看答案

第3题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You write the following code fragment. You need to ensure that the style is applied to all labels within the application.What should you do?()

A.Add the style to the <Grid.Resources> section of the main window.

B.Add the style to the <Window.Resources> section of the main window.

C.Add the style to the <Application.Resources> section of the App.xaml file.

D.Add the style to the <Application.Properties> section of the App.xaml file.

E.Add the style to the <ResourceDictionary> section of the ResourceDictionary.xaml file.

点击查看答案

第4题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.The number of items of the data-bound collection is fixed. However, users can modify the properties of each of the Product objects in the collection.You need to ensure that changes made on the Product objects are automatically reflected in the ListBox control.What should you do?()

A.Implement the INotifyPropertyChanged interface in the Product class.

B.Implement the INotifyCollectionChanged interface in the ProductList class.

C.Set the Mode property of the Binding object of the ListBox control to TwoWay.

D. Set the UpdateSourceTrigger property of the Binding object of the ListBox control to PropertyChanged.

点击查看答案

第5题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.You need to ensure that changes to ProductList are automatically reflected in the ListBox control.What should you do? ()

A. Implement the INotifyPropertyChanged interface in the Product class.

B. Implement the IQueryable<Product> interface in the ProductList class.

C. Extend the DependencyObject class in the Product class.

D.Extend the ObservableCollection<Product> class in the ProductList class.

点击查看答案

第6题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You add a TreeView control to show the hierarchical structure of orders and order details.Each order contains an ObservableCollection named OrderDetails.You write the following code fragment. (Line numbers are included for reference only.)You need to ensure that the TreeView control meets the following requirements:Each order is shown as a TreeView node.The order nodes have order detail nodes as children.The order detail nodes have no children.Which code fragment should you insert at line 07?()

A.

B.

C.

D.

点击查看答案

第7题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You write the following code fragment.You create an event handler named StackPanel_PreviewTextInput. You also have a collection of strings named Keywords.You need to ensure that TxtBoxA and TxtBoxB do not contain any of the strings in the Keywords collections.Which code segment should you use?()

A.

B.

C.

D.

点击查看答案

第8题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You declare a class named PictureContainer that has a property named Photo.The Photo property is of the byte[] type and contains an image in the JPEG format.You assign a collection of the PictureContainer elements to the current DataContext.You need to create a ListBox control that displays the images.Which code fragment should you use?()

A.

B.

C.

D.

点击查看答案

第9题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application uses the background worker process (BWP).When the user clicks a button,the background worker executes a method named DoCalculations asynchronously.You need to implement a progress bar on the user interface (UI) that informs the user of the progress of DoCalculations.Which two actions should you perform?()

A.Modify the Value property of the progress bar in DoCalculations.

B.Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.

C.Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.

D.Call the ReportProgress method of the background worker in DoCalculations.

E.Call the ReportProgress method of the background worker in the DoWork event handler of the background worker.

点击查看答案

第10题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe.You use Microsoft Windows Installer to package the application.You create an icon file named Application.ico.You need to associate Application.ico with MyApp.exe when it is deployed.What should you do?()

A.Use the File Types Editor tool.

B.Rename the icon file to MyApp.exe .ico.

C.Set the AddRemoveProgramsIcon property to Application.ico.

D.Use the File System Editor tool to set the Icon property to Application.ico.

点击查看答案
下载上学吧APP
客服
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
选择优惠券
优惠券
请选择
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

功能 扣减规则
基础费
(查看答案)
加收费
(AI功能)
文字搜题、查看答案 1/每题 0/每次
语音搜题、查看答案 1/每题 2/每次
单题拍照识别、查看答案 1/每题 2/每次
整页拍照识别、查看答案 1/每题 5/每次

备注:网站、APP、小程序均支持文字搜题、查看答案;语音搜题、单题拍照识别、整页拍照识别仅APP、小程序支持。

2. 使用语音搜索、拍照搜索等AI功能需安装APP(或打开微信小程序)。

3. 搜题卡过期将作废,不支持退款,请在有效期内使用完毕。

请使用微信扫码支付(元)
订单号:
遇到问题请联系在线客服
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

- 微信扫码关注上学吧 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注上学吧 -
请用微信扫码测试
选择优惠券
确认选择
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,如果您知道正确答案,欢迎您来纠错

上学吧找答案