Exam 70-511 : Windows Applications Development with Microsoft .NET Framework 4 Part – 3

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment.

You add the following code fragment in a WPF window control.

The TextBox control is data-bound to an instance of the Contact class. You plan to implement an ErrorTemplate in the TextBox control. You need to ensure that the validation error message is displayed next to the TextBox control. Which code fragment should you use

Correct Answer: 1 Question: You use Microsoft .NET Framework 4 to create a Windows Forms application. You have … Click here to continue…..

Exam 70-511 : Windows Applications Development with Microsoft .NET Framework 4 Part – 2

Question: 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 Write the following code segment in the button onclick event.

Write the following code segment in the button onclick event.

Use the following code segment from the PlaySound() Win32 … Click here to continue…..

Exam 70-511 : Windows Applications Development with Microsoft .NET Framework 4 Part – 1

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment.

You create an event handler named StackPanel_PreviewTextInput. You also have a collection of strings named Keywords. You need to ensure that TxtBoxA and TxtBoxB do not contain any of the strings in the Keywords collections. Which code segment should you use?

Correct Answer: 4 Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The … Click here to continue…..