单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
You need to implement the MyProject.MyConverter class.
What should you do?()
A. Implement the IValueConverter interface.
B. Implement the IMultiValueConverter interface.
C. Inherit from the TypeConverter class.
D. Apply the TypeConverterAttribute attribute.
相关考题
-
单项选择题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. You need to ensure that the StringMember property of the data-bound object is updated immediately when the user types the TextBox control. Which binding expression should you use?()
A. { Binding Path=StringMember, Mode=TwoWay }
B. { Binding Path=StringMember, NotifyOnSourceUpdated=True }
C. { Binding Path=StringMember, NotifyOnTargetUpdated=True }
D. { Binding Path=StringMember, UpdateSourceTrigger=PropertyChanged } -
单项选择题
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? ()
A. Obfuscate the assemblies.
B. Configure the application as online only.
C. Enable User Account Control (UAC) on all client computers.
D. Sign the deployment manifest with the publisher's digital certificate.
E. Add the publisher of application to the trusted publisher's store on all client computers.
