Share via


Display WPF trace information for data binding

Visual Studio can receive debug trace information for data binding from WPF applications and display that information in the Output window. To display debug trace information, WPF tracing must be enabled.

You can enable WPF tracing in your App.Config file or programmatically by using the PresentationTraceSources class. An easier way to enable WPF tracing is by using the Options window. WPF tracing for web applications isn't supported.

Enable or customize WPF trace information

The following trace levels are supported:

  • Critical: Trace Critical events only.

  • Error: Trace Critical and Error events.

  • Warning: Trace Critical, Error, and Warning events

  • Information: Trace Critical, Error, Warning, and Information events.

  • Verbose: Trace Critical, Error, Warning, Information, and Verbose events.

  • ActivityTracing: Trace Stop, Start, Suspend, Transfer, and Resume events.

For more information about the trace levels, see SourceLevels.