Edit

Share via


PresentationTraceLevel Enum

Definition

Describes the level of detail to trace about a particular object.

C#
public enum PresentationTraceLevel
Inheritance
PresentationTraceLevel

Fields

Name Value Description
None 0

Traces no available additional information.

Low 1

Traces some additional information.

Medium 2

Traces a medium amount of additional information.

High 3

Traces all additional information.

Examples

If you run the application that contains the following XAML under a debugger, the output window provides lines of information describing the status and evaluation of the binding:

XAML
<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
  xmlns:src="clr-namespace:SDKSample">
  <Window.Resources>
    <src:Person x:Key="myDataSource" PersonName="Joe"/>
  </Window.Resources>
XAML
<TextBox>
    <TextBox.Text>
        <Binding Source="{StaticResource myDataSource}" Path="PersonName"
                 diag:PresentationTraceSources.TraceLevel="High"/>
    </TextBox.Text>
</TextBox>
XAML
</Window>

Remarks

PresentationTraceLevel is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also