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

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create

You use Microsoft Visual Studio 2010 and Microsoft .

NET Framework 4 to create a Windows Presentation Foundation (WPF) application.

You create a WPF window in the application.

You add the following code segment to the application.

public class ViewModel

{

public CollectionView Data { get; set; }

}

public class BusinessObject

{

public string Name { get; set; }

}

The DataContext property of the window is set to an instance of the ViewModel class.

The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.

You add a TextBox control to the Window.

You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.

You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A .

Which binding expression should you use?()

简答题官方参考答案 (由简答题聘请的专业题库老师提供的解答)
查看官方参考答案
更多“You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create”相关的问题
第1题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create
You use Microsoft Visual Studio 2010 and Microsoft .

NET Framework 4 to create a Windows Presentation Foundation (WPF) application.

You create a WPF window in the application.

You add the following code segment to the application.

public class ViewModel

{

public CollectionView Data { get; set; }

}

public class BusinessObject

{

public string Name { get; set; }

}

The DataContext property of the window is set to an instance of the ViewModel class.

The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.

You add a TextBox control to the Window.

You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.

You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A .

Which binding expression should you use?()

点击查看答案
第2题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You plan to implement a test strategy for the application.You need to ensure that the test strategy meets the following requirements:Test data can be added to the test project without recompiling.Multiple variations of a test can be executed at run time.What should you do? ()

A.Use IntelliTrace.

B.Use data-driven tests.

C.Create a single test class.

D.Create a test method for each data variation.

点击查看答案
第3题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You write the following code fragment to bind a customer object to several controls in a window.You need to identify the source of the error.What should you do?()

A.Use a Trace object.

B.Use a Debug object.

C.Use the WPF Visualizer.

D.Use a PresentationTraceSources object.

点击查看答案
第4题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You discover that when the application runs, a user control is not rendered correctly.You need to find out the user interface (UI) element of the window that is causing the rendering problem.What should you do?()

A.Use the Local Window.

B.Use the WPF Visualizer.

C.Generate a trace log by using IntelliTrace.

D.Set a breakpoint at the control. Run the application.

点击查看答案
第5题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You write the following code fragment.You need to ensure that the StringMember property of the data-bound object is updated immediately when the user types the TextBox control.Which binding expression should you use?()

A.{ Binding Path=StringMember, Mode=TwoWay }

B.{ Binding Path=StringMember, NotifyOnSourceUpdated=True }

C.{ Binding Path=StringMember, NotifyOnTargetUpdated=True }

D.{ Binding Path=StringMember, UpdateSourceTrigger=PropertyChanged }

点击查看答案
第6题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application uses data-bound controls.You discover that when the application is executed by users, one of the controls is not displayed properly.You need to view the property values assigned to the controls.What should you do?()

A.Use IntelliTrace.

B.Use PresentationTraceSource.

C.Run the application in debug mode with Visual Studio 2010. Use the Auto window while you step through the application code.

D.Run the application in debug mode with Visual Studio 2010. Use the WPF Visualizer while you step through the application code.

点击查看答案
第7题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application includes a function that is triggered by filling out a form and by clicking a button.Currently, the application is tested manually.You need to create an automated and iterative process to test the application.What should you do?()

A.Use IntelliTrace.

B.Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.

C.Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.

D.Use the Action Recording methodology to record the user interface (UI) actions.Then, use MSTest.exe.

点击查看答案
第8题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows PresentationFramework (WPF) application.You have a page named myPage that contains the following code fragment.You need to ensure that other pages in your application can use CustomerNameBrush.What should you do? ()

A.Move CustomerNameBrush to the App.xaml file.

B.Inherit from myPage in all additional pages that use CustomerNameBrush.

C.Add a reference to myPage to all additional pages that use CustomerNameBrush.

D.Bind controls that need CustomerNameBrush to myPage.Resources.CustomerNameBrush.

点击查看答案
第9题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application contains a ListBox control named lbxItems that is data-bound to a collection of objects. Each object has a DisplayValue property.You add a Button control to the application.You need to ensure that the Content property of the Button control is data-bound to the DisplayValue property of the selected item of lbxItems.Which binding expression should you use?()

A.{ Binding ElementName=lbxItems, Source=SelectedItem, Path=DisplayValue }

B.{ Binding Source=lbxItems, ElementName=SelectedItem, Path=DisplayValue }

C.{ Binding ElementName=lbxItems, Path=SelectedItem.DisplayValue }

D.{ Binding Source=lbxItems, Path=SelectedItem.DisplayValue }

点击查看答案
第10题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You plan to use a PresentationTraceSources object when the application is executed by users.When the application is executed in a test environment, all debug information is successfully captured.You need to be able to capture debug information when the application is deployed.What should you do?()

A.Enable WPF tracing in the registry.Restart the application.

B.Enable tracing by modifying local Group Policy.Restart the application.

C.Open the XML configuration file for your application on the user‘s computer.Set tracing to a verbose level.Restart the application.

D.Open the XML configuration file for your application on the user‘s computer.Add a trace listener.Restart the application.

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

1. 搜题次数扣减规则:

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

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

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

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

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

订单号:

遇到问题请联系在线客服

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

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

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

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

简答题官方微信公众号

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