搜题
网友您好,请在下方输入框内输入要搜索的题目:
搜题
题目内容 (请给出正确答案)
提问人:网友cqf365 发布时间:2022-01-07
[主观题]

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.You create a window that contains a Button control and a MenuItem control. Both controls are labeled "Add sugar."The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand.You write the following code segment.private void CanAddSugar (object sender, CanExecuteRoutedEventArgs e) { ... }You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled.What should you do?()

A.Create an event handler for the CanExecuteChanged event of the AddSugarCommand command.Call the CanAddSugar method from within the event handler.

B.Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class. Call the CanAddSugar method from within the constructor of the AddSugarCommand command.

C.Add a CommandBinding object to the CommandBinding property of the MenuItem control. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

D.Add a CommandBinding object to the CommandBindings property of the window. Set the Command property of CommandBinding to the AddSugarCommand command. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

简答题官方参考答案 (由简答题聘请的专业题库老师提供的解答)
查看官方参考答案
更多“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 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.

点击查看答案
第4题
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.

点击查看答案
第5题
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.

点击查看答案
第6题
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.

点击查看答案
第7题
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.

点击查看答案
第8题
You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?()

A.

B.

C.

D.

点击查看答案
第9题
You are a network administrator for your company. All servers run Windows Server 2003. A server namedServer2 functions as a print server on the network.A high-speed color print device is attached to Server2. You configure a printer named ColorPrinter on Server2.Several other printers are also configured on Server2. The configuration of ColorPrinter is shown in the exhibit.(Click the Exhibit button.)Users in the marketing department report that when they print large files that contain multiple graphics, thedocuments print very slowly, pausing for several seconds between each page.You need to minimize the impact that large print jobs have on the performance of the printer. You need to achievethis goal by using the least administrative effort.What should you do?()

A. Create a printer pool that includes an additional printer of the same type as ColorPrinter.

B. Add a second printer to Server2 that prints to the same print device as ColorPrinter. Instruct marketing users to submit large print jobs to one device and smaller print jobs to the other.

C. Configure ColorPrinter to start printing after the last page is spooled.

D. Increase the priority of ColorPrinter so that it is higher than all other printers.

点击查看答案
第10题
You are the network administrator for your company. The network consists of a single Active Directory

domain. All network servers run Windows Server 2003. Half of the client computers run Windows XP

Professional, and the other half run Windows NT 4.0 Workstation.

You install Terminal Server on three member servers named Server1, Server2, and Server3. Each server has a single Pentium III 600-Mhz CPU with 512 MB of RAM and a single-channel EIDE disk subsystem.You place all three terminal servers in an organizational unit (OU) named Terminal Server. You link a Group Policy object (GPO) to the Terminal Server OU.

Several days after the installation, users report that the performance of all three terminal servers is unacceptably slow. You discover that each server has at least 50 active sessions at once.

You need to improve the performance of all three terminal servers. You must achieve this goal by using theminimum amount of administrative effort, without upgrading any hardware.

What should you do? ()

点击查看答案
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

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

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

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

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

请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

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

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

- 微信扫码关注简答题 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注简答题 -
请用微信扫码测试
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

简答题
下载APP
关注公众号
TOP