题目内容

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

A. { Binding Path=Data/Name, FallbackValue='N/A' }
B. { Binding Path=Data.Name, FallbackValue='N/A' }
C. { Binding Path=Data/Name, TargetNullValue='N/A' }
D. { Binding Path=Data.Name, TargetNullValue='N/A' }

查看答案
更多问题

In a combination chain and wire rope mooring system,the anchor chain is deployed at the anchor end of the line to().

A. increase fatigue life of the system
B. reduce the time to retrieve the line
C. increase the holding power
D. reduce the catenary

加油站推广监管分为自我监管、片区监管两种类型,并分别按日、按周、按月进行总结汇报。

A. 正确
B. 错误

在奎德看来,与政策分析密切相关的政治因素主要表现在()与谁是真正的委托人两个方面。

推销员在选择话题时必须要选择()的话题。在推销中,最重要的是客户而不是推销员自己。

答案查题题库