单项选择题


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);


您可能感兴趣的试卷

你可能感兴趣的试题

4.单项选择题


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"

6.单项选择题

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

A. Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.
B. Open Visual Studio command prompt and run mage -cc. Then click the Install hyperlink again.
C. Delete the application, deployment, and executable files from Web Server. Then rebuild the XBAP solution files from the project bin directory to the Web Server and click the Install hyperlink again
D. Delete the application, deployment, and executable files from Web Server. Then recopy the same files to the Web Server, restart IIS and click the Install hyperlink again

7.单项选择题

You are developing a Windows Presentation Foundation (WPF) application.
You need to display HTML content from a Web Page on the WPF form. What should you do?()

A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
B. Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
C. Add a DocumentViewer control to the design surface. The create a FixedDocument control.

8.单项选择题

You are developing a Windows Presentation Foundation (WPF) application for a travel reservation system
You need to ensure that users can select a range of travel dates.
What should you do ?()

A. Add single DatePicker control to the design surface
B. Add single Calendar control to the design surface
C. Add single MediaElement control to the design surface to display a calendar
D. Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface

9.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application.
You need to ensure that the application meets the following requirements:
When the mouse pointer is over the Button control, the background color of the button is set to red and
the Button control appears bigger.
When the mouse pointer is not over the Button control, the button returns to its original state.
What should you do?()

A. Create a template. Declare a VisualState element in the template.
B. Create a StoryBoard animation. Add an EventTrigger class to the Button control that begins the StoryBoard animation.
C. Create a ScaleTransform class. Bind the ScaleX and ScaleY properties of the Button control to the Background property by using a custom value converter.
D. Add a method named ChangeAppearance in the code-behind file. Subscribe the ChangeAppearance  method to the MouseEnter event of the Button control.

10.单项选择题

You are developing a Windows Presentation Foundation (WPF) application.
An event triggers a workflow such that a parent control executes the event handlers before the child controls.
You need to ensure that if a parent controls event handler encounters an error, the subsequent handlers are not called.
What should you do?()

A. Use handlers for a tunneling routed event and mark the event as handled in the case of a problem.
B. Use handlers for a tunneling routed event and make the event as handled in the finally portion of a try-catch-finally code block.
C. Use handlers for a bubbling routed event and mark the event as handled in the case of a problem.
D. Use handlers for a bubbling routed event and set the Handled property of the RoutedEventArgs object to true in the catch portion of a try-catch-finally code block.

最新试题

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

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.  The application displays a list of books. You write the following code fragment. (Line numbers are included for reference only.)You need to ensure that book titles that are out of stock appear in red.Which code fragment should you insert at line 12?()

题型:单项选择题

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

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application for a travel reservation systemYou need to ensure that users can select a range of travel dates.What should you do ?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window named MainWindow that has a StackPanel control named sp as the root element. You want to create a Button control that contains a TextBlock control with the "Save" Text property. You need to create the control dynamically and add the control to sp. Which code segment should you write in the constructor of the MainWindow class?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Forms application. You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in anElementHost control named elementHost1. You write the following code segment. (Line numbers are included for reference only.)You need to ensure that the application changes the background color of the hosted control when the background color of the form changes.  Which code segment should you insert at line 05?()

题型:单项选择题

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 use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays an image.You need to ensure that users can stretch and scale the image. Which control should you use?()

题型:单项选择题

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows PresentationFramework (WPF) application. You have a page named myPage that contains the following code fragment. You need to ensure that other pages in your application can use CustomerNameBrush.  What should you do? ()

题型:单项选择题

You have definded a style in app.xamlYou want to use this style in your application in code behind.How can you achieve this? ()

题型:单项选择题