Online Access Free 070-511 Exam Questions
| Exam Code: | 070-511 |
| Exam Name: | TS: Windows Applications Development with Microsoft .NET Framework 4 |
| Certification Provider: | Microsoft |
| Free Question Number: | 288 |
| Posted: | Aug 23, 2026 |
You are developing a Windows Presentation Foundation (WPF) application. A window is defined in the following markup segment.
You need to add a Windows Forms Button control to the window programmatically.
Which code segment should you use?
You are developing a Windows Presentation Foundation (WPF) application. The window has the following markup. (Line numbers are included for reference only.)
You need to ensure that all ListBox controls have a border that matches the background color of the ListBox template.
Which markup segment should you insert at line 15?
You are developing a Windows Presentation Foundation (WPF) application by using
Microsoft Visual Studio 2010.
While testing the application, you discover that a control is not positioned properly within a
canvas.
You need to view the Dependency properties of the control at run time. Which tool should you use?
You are developing a Windows Presentation Foundation (WPF) application. The application contains a converter named DateOutputConverter that formats dates. The window is defined as follows. (Line numbers are included for reference only.)
The window must display the OrderDate value found in shippedOrder. The text box must display the OrderDate formatted by the DateOutputConverter.
You need to ensure that the OrderDate is displayed and formatted correctly.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a
Windows Presentation Foundation (WPF) application.
You create a WPF window in the application.
You add the following code segment to the application.
The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.
You add a TextBox control to the window.
You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.
You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A.
Which binding expression should you use?