当前位置:MCPD(70-511)题库

问题:

[单选]

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

被苏轼赞誉为“发纤浓于简古,寄至味于淡泊”、“外枯而中膏”的山水诗人是()。 王维。 刘长卿。 韦应物。 柳宗元。 只有承兑过的汇票才可以在贴现市场上贴现。 You are the network administrator for your company. The network consists of a single Active Directory domain. All servers run Windows Server 2003. All client computers run either Windows 2000 Professional with Service Pack 4 or Windows XP Professional. You install Windows Server Update Services (WSUS) on a computer named Server2. You create a Group Policy object (GPO) that configures all client computers to receive software updates from Server2. One week later, you run Microsoft Baseline Security Analyzer (MBSA) on all client computers to find out whether all updates are being applied. You discover that all of the Windows 2000 Professional client computers receive updates, but the Windows XP Professional client computers do not receive updates.  You verify that the GPO setting was applied on all Windows XP Professional computers. You need to ensure that the Windows XP Professional client computers receive their updates from Server2.   What should you do?() Make all users of Windows XP Professional client computers members of the Administrators local group.。 On all Windows XP Professional client computers, install the latest service pack.。 On all Windows XP Professional client computers, use the gpupdate /force command.。 On all Windows XP Professional client computers, delete the NoAutoUpdate value under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU.。 You have a server that runs Windows Server 2008 and has the Windows Server Virtualization (WSv)server role installed. You create a new virtual machine. You need to configure the virtual machine to meet the following requirements: Allow network communications between the virtual machine and the host system. Prevent communications with other network servers. What should you do first?() Install the Microsoft Loopback Adapter.。 Create a new Virtual Network Switch.。 Enable Internet Connection Sharing (ICS).。 Set the Connection to None for the network interface card.。 试述药芯焊丝CO焊有何优点?

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

参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服