black

MCPD(70-511)

登录

单项选择题

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 }

相关考题

多项选择题 You use Microsoft .NET Framework 4 to create a Windows application. You plan to deploy the application by using Trusted Application Deployment. The application can only be installed by users who have elevated permissions. You need to ensure that users are not prompted for additional permissions when they install the application. Which two actions should you perform? ()

单项选择题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application displays a list of books. You write the following code fragment. (Line numbers are included for reference only.) You need to ensure that book titles that are out of stock appear in red. Which code fragment should you insert at line 12?()

单项选择题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a set of Button controls. You need to ensure that a button is highlighted when the mouse pointer is located over a button that contains no content. Which code fragment should you use?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064