单项选择题

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.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

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

2.单项选择题

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.

3.单项选择题

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.

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 DocumentViewer control to the design surface. Then create a FixedDocument control.
C. Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
D. Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.

9.单项选择题

You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4. You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer. 
What should you do?()

A. Use a custom action. 
B. Set the MinVersion property to .NET Framework 4.
C. Set the Version property of Windows Installer to .NET Framework 4.
D. Set the Version property of the Launch Condition to .NET Framework 4.

10.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe.  
You use Microsoft Windows Installer to package the application. 
You create an icon file named Application.ico. 
You need to associate Application.ico with MyApp.exe when it is deployed. 
What should you do?()

A. Use the File Types Editor tool.
B. Rename the icon file to MyApp.exe .ico.
C. Set the AddRemoveProgramsIcon property to Application.ico.
D. Use the File System Editor tool to set the Icon property to Application.ico.

最新试题

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

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application that displays financial data. The following style is applied to every Label control that displays currency.You need to ensure that the style is updated to meet the following requirements regarding currency:- It must be right aligned- It must display the number with the regional currency settingsWhich setting should you use in the application manifest?()

题型:单项选择题

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

题型:单项选择题

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

题型:单项选择题

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

题型:单项选择题

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

题型:单项选择题

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. You need to use XAML to create a custom control that contains two Button controls.From which base class should you inherit? ()

题型:单项选择题