Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides debug tracing support that is specifically targeted for Windows Presentation Foundation (WPF) applications.
public ref class PresentationTraceSources abstract sealed
The following sample configuration file enables tracing of animations, writing the output to a text file called "debug.txt". This configuration file can only be used with .NET Framework apps.
Remarks
Debug tracing is only available when a WPF application is running in full trust mode.
To enable tracing, you first must set a registry key, then you must configure trace sources.
To create the registry key, set a ManagedTracing reg_dword value to 1 under "HKeyCurrentUser\Software\Microsoft\Tracing\WPF".
To configure trace sources in a .NET Framework app, create an application config file. This file has a .config extension, for example, XamlPad.exe.config.
Achieving optimal application performance requires forethought in application design and an understanding of best practices for Windows Presentation Foundation (WPF) application development. For more information, see Optimizing WPF Application Performance.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.