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?
A. Inherit from the TypeConverter classYou are developing a Windows Presentation Foundation (WPF) application for managing student information. You place a Button control named btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml file. You create a Student class with two properties: FirstName and LastName. You create the following code segment in the constructor of the main window.

The DataGrid control displays the list of students unsorted.
You need to ensure that the list of students is sorted by last name.
Which code segment should you add to the click event handler of the Button control?
A. Dim sortedStudents As IEnnumerable(Of Student) = Students.OrderBy(Function(s) s.LastName).ToList() dgstudents.ltemssource = sortedStudentsYou are developing a Windows Presentation Foundation (WPF) application.
The movement of a control within the application is animated.
You need to ensure that the animated control is continually animated in one direction.
What should you specify for the easing function of the animations?
A. ElasticEaseYou 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.)

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 children.

The order detail nodes have no children.
Which code fragment should you insert at line 07?
You are developing a Windows Presentation Foundation (WPF) application.
Two styles, Blue and Green, are used for Border objects. The two styles have the same values for the CornerRadius and BrushThickness properties and different values for the Background property.
You need to define the CornerRadius and BrushThickness settings in either the Blue or the Green style, but not both.
What should you do?
A. Separate Blue and Green into two files. Put the base settings in Blue and use MergedDictionaries. Ensure that the Green file is second in the list.You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
< TextBox Text="{Binding Path=StringMember} " / >
You need to ensure that the StringMember property of the data-bound object is updated immediately when the user types in the TextBox control.
Which binding expression should you use?
A. { Binding Path=StringMember, Mode=TwoWay }You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a property named ServiceContext to a control.
You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class.
What should you do?
A. Inherit the control class from the DependencyObject class.You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List (Of T) named Leads, where T is a class named Lead. The Lead class contains the properties Title and Revenue.
You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemSource property of dgQualifiedLeads to Leads as follows. (Line numbers are included for reference only.)

You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue of more than $1,000.
What should you do?
A. Insert the following code at line 22. Leads.Filter = New Predicate (Of Object)(AddressOf FilterOut) Add the following code segment to the code-behind of the MainWindow.xaml file. Public Function FilterOut(ByVal item As Object) As Boolean Dim lead As Lead = TryCast(item, Lead) Return IIf(lead.Revenue < 1000D, True, False) End FunctionYou are developing a Windows Presentation Foundation (WPF) application.
A UserControl named usercontroll contains the following controls.
You need to ensure that the content of the label displays "New Content!!!" programmatically from the code-behind of the application window that contains the UserControl.
Which code segment should you use?
A. var label = userControll.FindName ("label1") as Label; label.Content = "New Content!!!";You are developing a Windows Presentation Foundation (WPF) application. The application has an Image control.
You need to ensure that a portion of the image displays in a circle in the control. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Add an Ellipse element to the control. Use Ellipse.Stroke and ImageBrush with the image as ImageSource.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.