Laest 70-511 PDF Dumps and 70-511 VCE Dumps can be downloaded from Braindump2go Now! This New Updated 70-511 Exam Dumps has 300q in all! All Braindump2go 70-511 Exam Questions and Answers are formulated and verified by experienced IT professionals! We guarantee all of you can pass 70-511 Exam successfully!

QUESTION 62You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.You create a window that contains a Button control and a MenuItem control. Both controls are labeled “Add sugar.” The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand.You write the following code segment.private void CanAddSugar (object sender, CanExecuteRoutedEventArgs e) { … } You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled.What should you do?

A. Create an event handler for the CanExecuteChanged event of the AddSugarCommand command. Call the CanAddSugar method from within the event handler.B. Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class. Call the CanAddSugar method from within the constructor of the AddSugarCommand command.C. Add a CommandBinding object to the CommandBinding property of the MenuItem control. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.D. Add a CommandBinding object to the CommandBindings property of the window. Set the Command property of CommandBinding to the AddSugarCommand command. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

Answer: D

QUESTION 63You 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 a video file begins to play only when a user clicks Play.Which code fragment should you insert at line 06?

QUESTION 64You 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,

Answer: A

QUESTION 65You 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 DocumentViewer control to the design surface. Then create a FixedDocument control.C. Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.D. Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.

Answer: C

QUESTION 66You 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

Answer: D

QUESTION 67You 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.

Answer: D

QUESTION 68You 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 MyApp.exe 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.

Answer: D

QUESTION 69You are developing a Windows Presentation Foundation (WPF) application.You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input.From which base class should the test class inherit?

A. AutomationElementldentifierB. AutomationPeerC. KeyboardD. UlCues

Answer: B

QUESTION 70You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) applicationYou 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.

Answer: A

Braindump2go 100% Guarantees all the 70-511 300q are Real Exam Questions & Answers from Microsoft Official certification exams.We also provides long free updation for 70-511 Exam Dumps: 1 Year Free Updates – Downloaded Automatically on your computer to ensure you get updated pool of questions. Braindump2go trys best to make you feel confident in passing 70-511 Certifications Exam!