单选题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. Display

题目
单选题
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

 Menu

B

 PopUp

C

 ListBox

D

 ContextMenu

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that allows users to arrange images. You need to ensure that users can arrange child elements in a panel without affecting the size of the elements. You also need to ensure that child elements are oriented horizontally. Which control should you use?()

  • A、 ListBox
  • B、 DockPanel
  • C、 WrapPanel
  • D、 StackPanel

正确答案:D

第2题:

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

  • A、 Frame
  • B、 Slider
  • C、 Viewbox
  • D、 ScrollViewer

正确答案:C

第3题:

You create Windows Forms applications by using the .NET Framework 3.5.You plan to deploy a new Windows Presentation Foundation (WPF) XAML browser application (XBAP).The deployment must meet the following requirements:  (1)shortcut is added to the Start menu   (2)The most recent version of the application is installed and executed on client computers   (3)Users can uninstall the application from the control panel    You need to identify a deployment technology that meets the specified requirements.You want to achieve this goal by using the minimum amount of development effort. Which deployment technology should you use?()

  • A、XCOPY
  • B、ClickOnce
  • C、MicrosoftWindows Installer
  • D、Remote Desktop connections

正确答案:B

第4题:

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、 Menu
  • B、 PopUp
  • C、 ListBox
  • D、 ContextMenu

正确答案:D

第5题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to implement a test strategy for the application. You need to ensure that the test strategy meets the following requirements: Test data can be added to the test project without recompiling. Multiple variations of a test can be executed at run time. What should you do? ()

  • A、 Use IntelliTrace.
  • B、 Use data-driven tests.
  • C、 Create a single test class.
  • D、 Create a test method for each data variation.

正确答案:B

第6题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that users can view content in a book-reading format that displays two pages at a time. Which control should you use?()

  • A、 FlowDocument 
  • B、 FlowDocumentReader
  • C、 FlowDocumentPageViewer
  • D、 FlowDocumentScrollViewer

正确答案:B

第7题:

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.

正确答案:A

第8题:

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.

正确答案:A

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

正确答案:D

第10题:

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 control
  • B、 a data template
  • C、 a control template
  • D、 a control that inherits the Canvas class

正确答案:A

更多相关问题