You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment. (Line numbers are included for reference only.)

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

You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL. You also need to ensure that the TextBox control validates the input data.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two).
A. Replace line 01 with the following code segment. Public Class Contact Implements IDataErrorInfoYou are developing a Windows Presentation Foundation (WPF) application. The application uses a DockPanel control with its HorizontalAlignment property set to Left to divide the main window into three distinct columns. Each column is a
panel that is responsible for the layout of its own controls.
You need to reverse the order of the columns.
What should you do?
A. Set the HorizontalAlignment property to Right on the DockPanel.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.)

You need to ensure that book titles that are out of stock appear in red.
Which code fragment should you insert at line 12?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains a ListBox control named IbxItems that is data-bound to a collection of objects. Each object has a DisplayValue property.
You add a Button control to the application.
You need to ensure that the Content property of the Button control is data-bound to the DisplayValue property of the selected item of IbxItems.
Which binding expression should you use?
A. {Binding ElementName= IbxItems, Source=SelectedItem, Path=DisplayValue }You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel. Which code segment should you use?
A. Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;You are developing a Windows Presentation Foundation (WPF) application to display loan types by bank and students by loan type. You add the following markup segment to the MainWindow.xaml file. (Line numbers are included for reference only.)


You need to ensure that the data appears in hierarchical form in a TreeView control. What should you do?
A. At line 09, set the Resource Key to LoanList. A: lire 15, set the Resource Key to Students.You are developing a Windows Presentation Foundation (WPF) application that plays video clips. The markup is as follows.

You need to ensure that the current running time of the video is automatically updated and displayed in CurrentRunTime. What should you do?
A. Register for the myMediaTimeline CurrentTimelnvalidated event and add the following line in the event handler. CurrentRunTime.Text = myMediaElement.Clock.ToString();You are developing a Windows Presentation Foundation (WPF) application. This application will be used to display customer data to customer service representatives.
Phone numbers are stored as ten-digit numbers in the database.
The markup is as follows.
You need to ensure that phone numbers are displayed in the following format: (###) ### - ####
Which markup segment should you use?
A. public object Convert (object value, Type targetType, object parameter, CultureInfo culture) { return String.Format["{0:(###)###-####)", (long)parameter); }You are developing a Windows Presentation Foundation (WPF) application.
You are planning the deployment strategy for the application.
You need to write specific information to the registry during deployment for each user.
Which deployment strategy should you use?
A. XBAPYou are developing a Windows Presentation Foundation (WPF) application.
You are creating a screen named NewsList that contains a ListView control. NewsList must meet the following requirements:
NewsList must display data from an object named News.
Each item displayed in NewsList must use a data template named dataTemplate1.
NewsList must be displayed by using a grid that has a maximum of four rows.
You need to identify which property to use for each requirement. What should you identify? (To answer, drag the appropriate properties to the correct requirements. Each property may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-511 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.