易搜题 > 资格证大类 > 资格证考试 > 问题详情
问题详情

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' }

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • ()是最根本的党内法规,是管党治党的总规矩。

    A、《中国共产党纪律处分条例》

    B、《中国共产党章程》

    C、《中国共产党廉洁自律准则》

    D、《中国共产党党员领导干部廉洁从政若干准则》

  • 中老年人膳食指南?

  • 当液压制动系统制动力不足时,连续踏下踏板的目的是()。

    A、增加系统内油液压强

    B、加大系统内油液流速

    C、使蹄鼓间隙缩小

    D、使油液快速流回主腔

  • ()领导风格的特点是:领导者一人承担活动中的全部责任,在权力所及的范围内,根据自己个人的经验和主观评价作出决定。

  • 联想的耳麦保修时间是多久()

    A、3个月

    B、1年

    C、2个月

联系客服 会员中心
TOP