You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add MediaElement mediaElement1 and a Button control named btnPlayAudio to the design surface. The MediaElement co.. audio file. The LoadedBehavior attribute is set to Manual.You add the following code to the main Window.You set the command of the button to MediaCommands.Play.You need to ensure that the application will play the audio file when the button is pressed.What should you add to constructor of the main window ?()
A.
B.
C.
D.
第1题:
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?()
第2题:
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 ?()
第3题:
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? ()
第4题:
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form. Which enumeration member should you use?()
第5题:
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?()
第6题:
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You use the ClickOnce deployment methodology to distribute the application. You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application. Where should you store the application data?()
第7题:
Autos
Immediate
Locals
Output
第8题:
In isolated storage.
On the database server.
In the ClickOnce data directory.
In the App.config file of the application.
第9题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
Add a DocumentViewer control to the design surface. The create a FixedDocument control.
第10题:
Use IntelliTrace.
Use PresentationTraceSource.
Run the application in debug mode with Visual Studio 2010. Use the Auto window while you step through the application code.
Run the application in debug mode with Visual Studio 2010. Use the WPF Visualizer while you step through the application code.
第11题:
Set the Value property of the style setter to point to a static resource
Set the BasedOn property of the heading style to point to a static resource for the body text style
Set the Key property of the heading style to start with the name of the body text style
Set the TargetType property of the heading style to TextBlock
第12题:
DragAction.Cancel
DragAction.Drop
DragDropEffects.None
DragDropEffects.All
第13题:
You are developing a Windows Presentation Foundation (WPF) application The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keys You need to ensure that the user enters a valid license key during installation of the software. Which deployment should reference the class library?()
第14题:
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?()
第15题:
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?()
第16题:
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?()
第17题:
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want to add an audio player that plays .wav or .mp3 files when the user clicks a button. You plan to store the name of the file to a variable named SoundFilePath. You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. What should you do?()
第18题:
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? ()
第19题:
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
Add a DocumentViewer control to the design surface. Then create a FixedDocument control.
Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.
第20题:
Frame
Slider
Viewbox
ScrollViewer
第21题:
ListBox
DockPanel
WrapPanel
StackPanel
第22题:
a user control
a data template
a control template
a control that inherits the Canvas class
第23题:
AutomationElementIdentifier
AutomationPeer
Keyboard
UICues