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.
<TextBox Text=”{Binding Path=CustomerName}” Name=”textBox1″ />
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?
A.
Use a Trace object.
B.
Use a Debug object.
C.
Use the WPF Visualizer.
D.
Use a PresentationTraceSources object.