考题
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.
考题
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、FlowDocumentB、FlowDocumentReaderC、FlowDocumentPageViewerD、FlowDocumentScrollViewer
考题
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、FrameB、SliderC、ViewboxD、ScrollViewer
考题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to use a PresentationTraceSources object when the application is executed by users. When the application is executed in a test environment, all debug information is successfully captured. You need to be able to capture debug information when the application is deployed. What should you do?()A、Enable WPF tracing in the registry.Restart the application.B、Enable tracing by modifying local Group Policy.Restart the application.C、Open the XML configuration file for your application on the user's computer.Set tracing to a verbose level.Restart the application.D、Open the XML configuration file for your application on the user's computer.Add a trace listener.Restart the application.
考题
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.
考题
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
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do?()A、Inherit the DependencyObject class.B、Declare the Speed property as a dependency property.C、Declare an animation of the Speed property from within the code-behind file.D、Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class.
考题
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?()A、DragAction.CancelB、DragAction.DropC、DragDropEffects.NoneD、DragDropEffects.All
考题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a window named ManageOrders that contains a Button control named showOtherSide. You add an animation named FlipSides as a resource of ManageOrders. You need to ensure that the following requirements are met: FlipSides runs each time a user clicks showOtherSide. FlipSides runs only when a user clicks showOtherSide. What should you do?()A、Add a property trigger to the Triggers collection of ManageOrders. Configure the property trigger to be based on the IsPressed property of showOtherSide.B、Add an event trigger to the Triggers collection of ManageOrders. Configure the event trigger to be based on the Click event of showOtherSide.C、Call the BeginAnimation method of showOtherSide. Pass FlipSides as a parameter of the BeginAnimation method.D、Call the BeginAnimation method of ManageOrders. Pass FlipSides as a parameter of the BeginAnimation method.
考题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()A、Use IntelliTrace.B、Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.C、Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.D、Use the Action Recording methodology to record the user interface (UI) actions.Then, use MSTest.exe.
考题
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. 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?()A、Write the following code segment in the button onclick event. System.Media. SoundPlayer player = new System.Media. SoundPlayer(SoundFilePath); player.play();B、Write the following code segment in the button onclick event. MediaPlayer player = new MediaPlayer(); player.Open(new URI(SoundFilePath), UriKind.Relative)); player.play();C、Use the following code segment from the PlaySound() Win32 API function and call the PlaySound function in the button onclick event. [sysimport(dll="winmm.dll")] public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);D、Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick event. Audio song = new Song(SoundFilePath); song.CurrentPosition = song.Duration; song.Play();
考题
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?()A、In isolated storage.B、On the database server.C、In the ClickOnce data directory.D、In the App.config file of the application.
考题
单选题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.
考题
单选题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. 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?()A
In isolated storage.B
On the database server.C
In the ClickOnce data directory.D
In the App.config file of the application.
考题
单选题You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()A
Use IntelliTrace.B
Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.C
Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.D
Use the Action Recording methodology to record the user interface (UI) actions.Then, use MSTest.exe.
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a window named ManageOrders that contains a Button control named showOtherSide. You add an animation named FlipSides as a resource of ManageOrders. You need to ensure that the following requirements are met: FlipSides runs each time a user clicks showOtherSide. FlipSides runs only when a user clicks showOtherSide. What should you do?()A
Add a property trigger to the Triggers collection of ManageOrders. Configure the property trigger to be based on the IsPressed property of showOtherSide.B
Add an event trigger to the Triggers collection of ManageOrders. Configure the event trigger to be based on the Click event of showOtherSide.C
Call the BeginAnimation method of showOtherSide. Pass FlipSides as a parameter of the BeginAnimation method.D
Call the BeginAnimation method of ManageOrders. Pass FlipSides as a parameter of the BeginAnimation method.
考题
单选题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 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?()A
Write the following code segment in the button onclick event. System.Media. SoundPlayer player = new System.Media. SoundPlayer(SoundFilePath); player.play();B
Write the following code segment in the button onclick event. MediaPlayer player = new MediaPlayer(); player.Open(new URI(SoundFilePath), UriKind.Relative)); player.play();C
Use the following code segment from the PlaySound() Win32 API function and call the PlaySound function in the button onclick event. [sysimport(dll=winmm.dll)] public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);D
Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick event. Audio song = new Song(SoundFilePath); song.CurrentPosition = song.Duration; song.Play();
考题
单选题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 Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to use a PresentationTraceSources object when the application is executed by users. When the application is executed in a test environment, all debug information is successfully captured. You need to be able to capture debug information when the application is deployed. What should you do?()A
Enable WPF tracing in the registry.Restart the application.B
Enable tracing by modifying local Group Policy.Restart the application.C
Open the XML configuration file for your application on the user's computer.Set tracing to a verbose level.Restart the application.D
Open the XML configuration file for your application on the user's computer.Add a trace listener.Restart the application.
考题
单选题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
FlowDocumentB
FlowDocumentReaderC
FlowDocumentPageViewerD
FlowDocumentScrollViewer
考题
单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do?()A
Inherit the DependencyObject class.B
Declare the Speed property as a dependency property.C
Declare an animation of the Speed property from within the code-behind file.D
Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class.
考题
单选题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?()A
DragAction.CancelB
DragAction.DropC
DragDropEffects.NoneD
DragDropEffects.All
考题
单选题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
FrameB
SliderC
ViewboxD
ScrollViewer
考题
单选题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.