You are developing a Windows Presentation Foundation (WPF) application.
An element binding consistently throws errors because the data retrieval is slow. You need to ensure that the PresentationTraceSource binding is configured to debug the source of these errors.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two).
A. Add the following markup segment to the window definition. xmlns:diagnostics= "clr-namespace:System.Diagnostics;assembly=WindowsBase"You are deploying a ClickOnce application manually in a test environment.
You need to ensure that the deployment is signed with a self-signed test X.509 certificate.
Which tool should you use to create the certificate?
A. makecert.exeYou are developing a Windows Presentation Foundation (WPF) application.
A user control responds to a click event. The click event handler sets the Handled property to True. You need to ensure that a parent control responds to the event after the user control's handler executes.
What should you do?
A. Add a bubbling routed event handler to the parent control.You are developing a Windows Presentation Foundation (WPF) application that contains a custom Button control.
The custom Button control can be set as active by setting an IsActive property to True.
You need to ensure that the IsActive property can be bound to a business object.
What should you do on the custom Button control?
A. Implement IsActive as a Microsoft .NET property.You are developing a Windows Presentation Foundation (WPF) application. You need to display HTML content from a Web page on the WPF form. What should you do?
A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.You are developing a Windows Presentation Foundation (WPF) application.
The application configuration file is maintained in source control and must not be modified. You need to ensure that developers can override individual settings.
Which XML segment should you use in the application configuration file?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You plan to allow users to customize the background colors, foreground colors, and font style of the application. You also plan to add a TextBlock control to the application.
You write the following code fragment. (Line numbers are included for reference only.)

You need to ensure that the ContextMenu control is associated with the TextBlock control. You also need to ensure that the properties that can be customized are shown hierarchically.
Which code fragment should you insert at line 15?
A. < Grid > < Menu > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes}" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" / > < MenuItem Header="Font" DataContext="{StaticResource fonts}" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" /> < /Menu> < TextBlock width-"200" Height-"100" Background-"LightBlue" / >You are developing a Windows Presentation Foundation (WPF) application.
The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library that contains the code to validate license keys.
You need to ensure that the user enters a valid license key during installation of the software.
Which deployment should reference the class library?
A. ClickOnceYou are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in a file named Themes.dll. You have the following markup segment.
Height="100" Width="200">
BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.
You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.
What should you do?
A. Add the following line to Window.Resources.You are developing a Windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the full book titles.
You create a converter named TrimTitleConverter to shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are
included for reference only.)

You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock.
Which markup segment should you use to replace lines 06 through 09?
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.