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

Question: You use Microsoft .NET Framework 4 to create a Windows Forms application. You add a new class named Customer to the application. You select the Customer class to create a new object data source. You add the following components to a Windows Form: A BindingSource component named customerBindingSource that… Continue reading

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

Question: 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? In… Continue reading

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

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a custom control that is used to display customer information. You discover that the custom control is not rendering correctly. You need to identify the WPF element… Continue reading

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

Question: 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? Inherit the DependencyObject class. Declare the Speed property as a dependency… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI)… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties. You add a ListBox control to the application. You need to ensure that… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a TreeView control to show the hierarchical structure of orders and order details. Each order contains an ObservableCollection named OrderDetails. You write the following code fragment. (Line numbers are included for reference only.)… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. <Window x:Class=”MyProject.MainWindow” xmlns:local=”clr-namespace:MyProject”> <Window.Resources> <local:MyConverter x:Key=”myConverter” /> </Window.Resources> <ListBox Name=”box”> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text=”{Binding Converter={StaticResource myConverter}, ConverterParameter=formatText}” Background=”{Binding Converter={StaticResource myConverter}, ConverterParameter=formatColor}” IsEnabled=”{Binding Converter={StaticResource myConverter}}” /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Window>… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a set of Button controls. You need to ensure that a button is highlighted when the mouse pointer is located over a button that contains no content. Which code fragment should you… Continue reading

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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window with a canvas element. You need to draw a black line that has rounded edges at each end. Which code fragment should you use? <Line X1=”10″ Y1=”10″ X2=”250″ Y2=”250″ Fill=”Black”… Continue reading