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 the pictures are displayed in the ListBox control. Which code fragment should you use?

Correct Answer: 4 Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You declare a class named PictureContainer that has a property named Photo. The Photo … Click here to continue…..

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.) 01<Grid> 02<Grid.Resources> 03<src:Orders x:Key=”orders”/> 04<DataTemplate x:Key=”OrderDetailTemplate”> 05<TextBlock Text=”{Binding Path=.}” /> 06</DataTemplate> 07 08</Grid.Resources> 09<TreeView DataContext=”{StaticResource orders}” 10ItemsSource=”{Binding Path=.}” 11ItemTemplate=”{StaticResource OrderTemplate}”/> 12 </Grid> You need to ensure that the TreeView control meets the following requirements: Each order is shown as a TreeView node. The order nodes have order detail nodes as … Click here to continue…..

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.

You need to implement the MyProject.MyConverter class. What should you do? Implement the IValueConverter interface. Implement the IMultiValueConverter interface. Inherit from the TypeConverter class. Apply the TypeConverterAttribute attribute. Correct Answer: 1 Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment.

You need to implement the MyProject.AverageConverter class. What should you do? Implement the IValueConverter interface. Implement the IMultiValueConverter interface. Inherit from the TypeConverter class. Apply … Click here to continue…..

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 use?

Correct Answer: 1 Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application displays a list of books. You write the following code fragment. (Line numbers are included for reference only.) 01<Window.Resources> 02<XmlDataProvider x:Key=”InventoryData” XPath=”Books”> 03<x:XData> 04<Books xmlns=””> … Click here to continue…..

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?

Correct Answer: 2 Question: You 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.) 01<Page xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” 02xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” 03x:Class=”MyCompany.MediaConrols” > 04<StackPanel Background=”Black”> 05<StackPanel HorizontalAlignment=”Center” Width=”450″ Orientation=”Horizontal”> 06 07<!– Play button. –> 08<Image Source=”imagesUI_play.gif” MouseDown=”OnMouseDownPlayMedia” Margin=”5″ /> … Click here to continue…..