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

You use Microsoft Visual Studio 2010


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 }
参考答案
参考解析:
分类:MCPD(70-511)题库
相关推荐

1、您正在使用Microsoft Visual Studio 2005 IDE

您正在使用Microsoft Visual Studio 2005 IDE检查一个返回string的方法的输出信息,您指定这个方法的输出给一个命名为fName的变量,您需要写一个代码片段打印下面这一行信息...

2、You use Microsoft Visual Studio 2010

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.The application uses the LINQ ParallelEnumerable.AsPa...

3、You use Microsoft Visual Studio 2010

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application...

4、您正在使用Microsoft Visual Studio IDE检查返回字

您正在使用Microsoft Visual Studio IDE检查返回字符串的方法的输出。您将该方法的输出赋给一个名为fName的字符串变量。您需要编写一个代码段,该代码段在单一行中打印以下内...

5、You use Microsoft Visual Studio 2010

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.The application...

6、You use Microsoft Visual Studio 2010

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows PresentationFramework (WPF) application.You have a page ...