网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
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.
参考答案
参考解析
解析:
暂无解析
更多 “单选题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 TrueB Use a bubbling routed event. In the button click event handler, set the Handled property to FalseC Use a standard Microsoft .NET event. Set Handled property to true.D Use a tunneling routed event. Set the handled property to false.” 相关考题
考题
You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()
A. Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.B. Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.C. Add a Web User Control to your project. Define a class that inherits from UserControl.D. Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.
考题
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 ?()
A. Add single DatePicker control to the design surfaceB. Add single Calendar control to the design surfaceC. Add single MediaElement control to the design surface to display a calendarD. Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface
考题
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.
考题
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.
考题
You develop a Web control. The Web control consists of labels and associated text boxes. You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()A、Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.B、Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.C、Add a Web User Control to your project. Define a class that inherits from UserControl.D、Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl..
考题
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.
考题
You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()A、Add the OnClick event handler for the Login button to the code used in the custom user control.B、Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.C、In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.D、In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.
考题
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 surfaceB、Add single Calendar control to the design surfaceC、Add single MediaElement control to the design surface to display a calendarD、Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that the application meets the following requirements: Displays a menu that is specific to the control selected by the user. Displays the menu next to the control. Which control should you use? ()A、MenuB、PopUpC、ListBoxD、ContextMenu
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()A、a user controlB、a data templateC、a control templateD、a control that inherits the Canvas class
考题
Your network has a single domain with 1,000 client computers that run Windows 7. You use Microsoft System Center Configuration Manager 2007 to distribute and install software applications. All users have standard user accounts. You plan to use Group Policy to ensure that application installation functions properly. You need to design the User Account Control (UAC) policy. What should you do?()A、 Configure the User Account Control: Only elevate executables that are signed and validated setting to be Enabled.B、 Configure the User Account Control: Detect application installations and prompt for elevation setting to be Enabled.C、 Configure the User Account Control: Detect application installations and prompt for elevation setting to be DisabledD、 Configure the User Account Control: Behavior of the elevation prompt for standard users setting to be Prompt for credentials.
考题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You discover that when the application runs, a user control is not rendered correctly. You need to find out the user interface (UI) element of the window that is causing the rendering problem. What should you do?()A、Use the Local Window.B、Use the WPF Visualizer.C、Generate a trace log by using IntelliTrace.D、Set a breakpoint at the control. Run the application.
考题
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、FrameworkElementB、UIElementC、UserControlD、Button
考题
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 TrueB、Use a bubbling routed event. In the button click event handler, set the Handled property to FalseC、Use a standard Microsoft .NET event. Set Handled property to true.D、Use a tunneling routed event. Set the handled property to false.
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The user control will be hosted in a window and will have handlers for the text-changed event of txtInput. You need to ensure that the application meets the following requirements: Creates a text-changed event handler named Audit_TextChanged for the txtInput control. Executes Audit_TextChanged even when specific handlers mark the event as handled. Which code segment should you add to the constructor of the user control?()A、txtInput.TextChanged+=Audit_TextChanged;B、AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);C、EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);D、EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler (Audit_TextChanged), false);
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The user control will be hosted in a window and will have handlers for the text-changed event of txtInput. You need to ensure that the application meets the following requirements: AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true); Which of the following statments are TRUE ?()A、A text-changed event handler, named Audit_TextChanged, was Created for the txtInput control.B、Audit_TextChanged will stop running because the event is marked as handled by certain event handlers.C、Even through the event is marked handled by certain event handlers, Audit_TextChanged will still run.D、Audit_TextChanged will continue to run until the event is marked as handled.
考题
单选题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.
考题
单选题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 surfaceB
Add single Calendar control to the design surfaceC
Add single MediaElement control to the design surface to display a calendarD
Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The user control will be hosted in a window and will have handlers for the text-changed event of txtInput. You need to ensure that the application meets the following requirements: Creates a text-changed event handler named Audit_TextChanged for the txtInput control. Executes Audit_TextChanged even when specific handlers mark the event as handled. Which code segment should you add to the constructor of the user control?()A
txtInput.TextChanged+=Audit_TextChanged;B
AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);C
EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);D
EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandler (Audit_TextChanged), false);
考题
单选题Your network has a single domain with 1,000 client computers that run Windows 7. You use Microsoft System Center Configuration Manager 2007 to distribute and install software applications. All users have standard user accounts. You plan to use Group Policy to ensure that application installation functions properly. You need to design the User Account Control (UAC) policy. What should you do?()A
Configure the User Account Control: Only elevate executables that are signed and validated setting to be Enabled.B
Configure the User Account Control: Detect application installations and prompt for elevation setting to be Enabled.C
Configure the User Account Control: Detect application installations and prompt for elevation setting to be DisabledD
Configure the User Account Control: Behavior of the elevation prompt for standard users setting to be Prompt for credentials.
考题
单选题You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You discover that when the application runs, a user control is not rendered correctly. You need to find out the user interface (UI) element of the window that is causing the rendering problem. What should you do?()A
Use the Local Window.B
Use the WPF Visualizer.C
Generate a trace log by using IntelliTrace.D
Set a breakpoint at the control. Run the application.
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()A
a user controlB
a data templateC
a control templateD
a control that inherits the Canvas class
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that the application meets the following requirements: Displays a menu that is specific to the control selected by the user. Displays the menu next to the control. Which control should you use? ()A
MenuB
PopUpC
ListBoxD
ContextMenu
考题
单选题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 TrueB
Use a bubbling routed event. In the button click event handler, set the Handled property to FalseC
Use a standard Microsoft .NET event. Set Handled property to true.D
Use a tunneling routed event. Set the handled property to false.
考题
单选题You develop a Web control. The Web control consists of labels and associated text boxes. You need to ensure that the Web control has both toolbox and visual designer support. What should you do? ()A
Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.B
Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.C
Add a Web User Control to your project. Define a class that inherits from UserControl.D
Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.
考题
单选题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.
考题
单选题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.
考题
单选题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
FrameworkElementB
UIElementC
UserControlD
Button
热门标签
最新试卷