You use Microsoft .NET Framework 4 to create a Windows Forms application.
The application includes a RichTextBox control and a ListBox control. The ListBox control is populated with a list of valid file names. The application allows users to drag a ListBox item to the RichTextBox
control. You need to provide a visual indication that a file that is dragged can be dropped on the
RichTextBox control. What should you do?
You use Microsoft .NET Framework 4 to create a Windows application that can execute on client computers that run Windows Vista.
You are creating a User Account Control (UAC) application manifest for the application. You need to ensure that users who are members of the local Administrators group do not receive a UAC prompt when the application executes. Which code fragment should you use?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do?
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?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation
Foundation (WPF) application.
You plan to implement a test strategy for the application. You need to ensure that the test strategy meets the following requirements:
Test data can be added to the test project without recompiling.
Multiple variations of a test can be executed at run time.
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation
Foundation (WPF) application.
The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application.
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You discover that when the application runs, a user control is not rendered correctly. You need to find out the user interface (UI) element of the window that is causing the rendering problem. What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains a custom control that is used to display customer information. You discover that the custom control is not rendering correctly. You need to identify the WPF element that is causing the issue.
You want to achieve this goal by using the minimum amount of administrative effort. What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application uses data-bound controls. You discover that when the application is executed by users, one of
the controls is not displayed properly. You need to view the property values assigned to the controls. What should you do?
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 to bind a customer object to several controls in a window.
When the application executes, you receive the following error message:
"System.Windows.Data Error: 35 : BindingExpression path error: 'CustomerName'
property not found on 'object' ''Customer' (HashCode=22613453)'.
BindingExpression:Path=CustomerName; DataItem='Customer' (HashCode=22613453);
target element is 'TextBox' (Name='textBox1'); target property is 'Text' (type 'String')"
You need to identify the source of the error. What should you do?