单项选择题

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

A. FrameworkElement
B. UIElement
C. UserControl
D. Button


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

You use Microsoft .Net Framework 4 to create a Windows Form application.
You created a new application, you then wrote the code below:
Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture
Which of the following options are TRUE? ()

A. The user interface will make use of the currently configured culture settings in the Control Panel at present.
B. The user interface will make use of new culture settings.
C.The user interface will make use of the culture settings that were installed with the operating system.

2.单项选择题

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

4.单项选择题

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.

7.单项选择题

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 ...

8.单项选择题


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

最新试题

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 are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in the file name Themes.dllYou have the followiing markup segment.BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.()

题型:单项选择题

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 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. You write the following code segment. (Line numbers are included for reference only.) the TextBox control is data-bound to an instance of the Contact class.  You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL.You also need to ensure that the TextBox control validates the input data. Which two actions should you perform?()

题型:多项选择题

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

题型:单项选择题

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 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 are developing a Windows Presentation Foundation (WPF) application.You configure PresentationTraceSource to track errors in a bound TextBox control in the application.You need to choose the window that the Trace information is sent toWhich Visual Studio window should you select ?()

题型:单项选择题

You upgrade a Windows Forms application to Microsoft .NET Framework 4. The application was developedby using a previous version of the .NET Framework. The application uses the Code Access Security (CAS) policy for file access. When the application is executed, you receive the following exception:  "NotSupportedException: This method uses CAS policy, which has been obsoleted by the .NET Framework." You need to resolve the error. What should you do?()

题型:单项选择题