Click here to Skip to main content
12,065,756 members (46,824 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked

Visual Studio 2010 WPF Trace Settings Default Is Incorrect

, 24 Jun 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Visual Studio 2010 WPF Trace Settings Default Is Incorrect

A few weeks ago, I found that after setting the attached property PresentationTraceSources.TraceLevel=High on a binding, I was not getting the expected verbose output.

You can see an obvious error in the Path property name.

    Text="{Binding diag:PresentationTraceSources.TraceLevel=High,
            Path=XCustomerID}" />

Using the above in WPF 3.5 SP1 would result in many messages being outputted in the Debugger Output Window.

However, in Visual Studio 2010 WPF 4.0, I was only seeing the below single binding error:

System.Windows.Data Error: 40 : BindingExpression path error: 
‘XCustomerID’ property not found on ‘object’ ”ListCollectionView’ 
(HashCode=55179487)’. BindingExpression:Path=XCustomerID; 
DataItem=’ListCollectionView’ (HashCode=55179487); 
target element is ‘TextBlock’ (Name=’CustomerIDTextBlock’); 
target property is ‘Text’ (type ‘String’)

The reason the expected messages are not being outputted is because the installation default setting of the WPF Trace Settings is “Error” and not “Warning.” When set to “Error”, no “Warning” messages will be outputted.

To enable the PresentationTraceSources.TraceLevel messages to be seen, you need to change your Tools, Options, Debugging, Output Window, WPF Trace Settings value to Warning as I’ve done in the below image.


Have a great day writing your applications!

Just a grain of sand on the worlds beaches.

Filed under: CodeProject, Data Binding, Tips, Visual Studio 2010, WPF General


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Karl Shifflett
Technical Lead Logical Advantage
United States United States

Christian, Husband, Dad, Biker, Marine Corps Veteran, stage IV cancer survivor.

Current passions are: Electron, ES6, Aurelia, hybrid, and IoT.

At work it's C#, ASP.NET Web Api, Ionic, ES5, TypeScript, AngularJS

Still keen on WPF and Prism, but currently Electron and ES6 deliver the same apps.


  • December 2008 VB.NET Code Project Article Award
  • 2009 Code Project MVP
  • 2008 Code Project MVP
  • 2008 Microsoft MVP - Client App Dev
  • December 2007 VB.NET Code Project Article Award
  • Gold Medal Winner at IBM's 1998 PROIV Programming Contest in Las Vegas
Click here to check out my Blog

Just a grain of sand on the worlds beaches.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.160207.1 | Last Updated 24 Jun 2010
Article Copyright 2010 by Karl Shifflett
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid