单项选择题

You are developing a Windows Presentation Foundation (WPF) application.
The application contains stylized body text and heading text. The heading text is a slight variation of the body text.
You need to ensure that if the body text changes, the heading text automatically inherits those changes.
What should you do ?()

A. Set the Value property of the style setter to point to a static resource
B. Set the BasedOn property of the heading style to point to a static resource for the body text style
C. Set the Key property of the heading style to start with the name of the body text style
D. Set the TargetType property of the heading style to TextBlock


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

You are developing a user control for Windows Presentation Foundation (WPF) application.
The user control contains a button. Both the user control and the hosting control must receive the button click event.
You need to ensure that the user control responsd to the button click event before hosting control responds to the event.
What should you do ?()

A. Use a bubbling routed event. In the button click event handler, set the Handled property to True
B. Use a bubbling routed event. In the button click event handler, set the Handled property to False
C. Use a standard Microsoft .NET event. Set Handled property to true.
D. Use a tunneling routed event. Set the handled property to false.

5.单项选择题

You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number.
You have been asked to provide data validation in a DataGridView to prevent users from leaving the..
You need to ensure that users cannot tab out of the name field without entering data
What should you do ?()

A. Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is
B. Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..
C. Validate the name field in the CellEnter event. Set the focus on the name field if the name ...
D. Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...

6.单项选择题


The UI is not being updated when the Data property is set.
You need to ensure that the DisplayData class correctly updates the UI when the Data ..
What should you do ?()

 

A. Insert the followiing code at line 14    NotifyPropertyChanged("Data");
B. Insert the followiing code at line 16    NotifyPropertyChanged("Data");
C. Insert the followiing code at line 14    NotifyPropertyChanged(value);
D. Insert the followiing code at line 16    NotifyPropertyChanged(value);

10.单项选择题


When the application si run, it appears as follows

You need to ensure that the TextBlock control with the contents "Product shipped" is horizontal centered to the grid?
Which mark up segment should you add to the TextBlock control?()

A. GridView.Columncollection="1,2"
B. Grid.Columnspan="2"
C. Manipulation.ManipulationCharacter="2"
D. TextBlock.TextAllignment ="Center"

最新试题

You are developing a Windows Presentation Foundation (WPF) applicationThe application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keysYou need to ensure that the user enters a valid license key during installation of the software.Which deployment should reference the class library?()

题型:单项选择题

When the application si run, it appears as followsYou need to ensure that the TextBlock control with the contents "Product shipped" is horizontal centered to the grid?Which mark up segment should you add to the TextBlock control?()

题型:单项选择题

You have a custom button, with should have a Property "IsActive", one must be able to bind this Property on a class Property.()

题型:单项选择题

You need to ensure that phone numbers are displayed in the following format : (###) ### - ###Which markup segment should you use ?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List<T.. class named Lead. The Lead class contains the properties Title and Revenue.You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemsSource property to Leads as follows.You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue ...What should you do ?()

题型:单项选择题

You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes.When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes.You need to ensure that the changes you make are visible when you test the deployment from your machine.What should you do ?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.List box's ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows.You need to ensure that data templates are used to format the strings without changes and the decimals as ..Which markup segment should you insert at line 05 ?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping.The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?()

题型:单项选择题

You create a Windows client application by using Windows Presentation Foundation (WPF). The application contains the following code fragment. You need to assign lbDetails to use the detail data template when btnDetails is clicked. Which code segment should you write for the click event handler for btnDetails?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Forms application.You write the following code segment. (Line numbers are included for reference only.)01sealed class FormSettings :You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting."Which code segment should you insert at line 03?()

题型:单项选择题