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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a game where a ball drops from the top to the bottom of a window. You plan to create a single animation for the game. You need to ensure that the animation shows… Continue reading

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

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You have a page named myPage that contains the following code fragment. <Page.Resources> <SolidColorBrush x:Key=”CustomerNameBrush” Color=”SkyBlue”/> </Page.Resources> You need to ensure that other pages in your application can use CustomerNameBrush…. Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want the application to contain a window as shown in the following exhibit. The application contains the following code fragment. (Line numbers are included for reference only.) 01<Grid ShowGridLines=”True”> 02<Grid.ColumnDefinitions> 03<ColumnDefinition /> 04<ColumnDefinition />… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that allows users to arrange images. You need to ensure that users can arrange child elements in a panel without affecting the size of the elements. You also need to ensure that child elements are… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create an application. The application contains a partially trusted client assembly and a server assembly. You create a custom sandboxed application domain. You need to ensure that the application can be executed in a partial-trust environment. What should you do? Apply the… Continue reading

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. public class Contact { private string _contactName; public string ContactName { get { return _contactName; } set { if (string.IsNullOrEmpty(value)) throw new ApplicationException(“Contact name is required”); _contactName = value;… Continue reading

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… Continue reading

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. <StackPanel TextBox.PreviewTextInput=”StackPanel_PreviewTextInput”> <TextBox Name=”TxtBoxA”/> <TextBox Name=”TxtBoxB”/> <TextBox Name=”TxtBoxC”/> </StackPanel> You create an event handler named StackPanel_PreviewTextInput. You also have a collection of strings named Keywords. You need to ensure… Continue reading