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. Dim player As New System.Media.SoundPlayer(SoundFilePath) player.Play()You are developing a Windows Presentation Foundation (WPF) application. You add several TextBox controls within a StackPanel control. You next add several Image controls within a second StackPanel control.
During testing, you discover that some of the textboxes do not appear in the proper layout.
You need to quickly search for the textboxes and view their properties to identify which ones are incorrect.
What should you do?
A. Open the QuickWatch window and select the Text Visualizer.You are developing a Windows Presentation Foundation (WPF) application. The WPF window contains a ListBox control that displays a list of customer names and genders.
You add the following markup segment to the application. (Line numbers are included for reference only.)

The WPF window renders the list of customers with empty Gender values.
You need to convert the null values for Gender to the following string: "Gender Not Specified". Which binding attribute should you add at line 08?
A. TargetNullValue='Gender Not Specified'You are developing a Windows Presentation Foundation (WPF) application.
The movement of a control within the application is animated.
You need to ensure that the animated control is continually animated in one direction.
What should you specify for the easing function of the animations?
A. BackEaseYou use Microsoft. NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.)

You need to ensure that both Button controls display the "Save" text. Which code fragment should you insert at line 06?
You are developing a Windows Presentation Foundation (WPF) application with multiple windows.
The majority of the buttons within the application are styled consistently. However, three buttons within the application must be styled differently.
You need to ensure that the application can handle this styling requirement.
What should you do?
A. Create the styles in the main window resources. Omit the Key property for the default Button style and specify the Key property for the Button style and the three buttons.You are developing a Windows Presentation Foundation (WPF) application.
You are implementing the security features for a function that requires File 10. The callers of this function that are higher in the stack do not have permission to read the C:\temp directory.
The function also accesses other resources that require permission.
You need to ensure that the function has the proper permissions to read the C:\temp directory, and that all other resources in the function can still be accessed.
Which attribute should you include with the function?
A. [FileIOPermissionAttribute(SecurityAction.Demand, Read = "C:\\TEMP")]You are developing an XBAP application for your company intranet. During several development iterations, you manually copy the working executable, application, and deployment manifest files to the test Web server. You create an HTML file that has a hyperlink to the deployment manifest that you use for testing. During the next iteration, you enhance the XBAP application by making changes to the application.
When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes.
You need to ensure that the changes you make are visible when you test the deployment from your machine.
What should you do?
A. Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.You are developing a Windows Presentation Foundation (WPF) application. You have the following style defined in the app.xaml file.
You need to apply this style to a button named button1 in the application at run time.
Which code segment should you use?
A. button1.Style = TryCast(Me.FindName("styleItalic"),Style)You are developing a Windows Presentation Foundation (WPF) application. The application contains the following markup.

You need to ensure that the Filter combo box is hidden when the expander is collapsed.
What should you do?
A. Add the following DataTrtgger element to the Expander control.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-511 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.