| File: MS\Internal\TraceHwndHost.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #define TRACE // // Description: Defines TraceHwndHost class, for providing debugging information // for HwndHosts // namespace MS.Internal { /// <summary> /// Provides a central mechanism for providing debugging information /// to aid programmers in using HwndHost. /// Helpers are defined here. /// The rest of the class is generated; see also: AvTraceMessage.txt and genTraceStrings.pl /// </summary> internal static partial class TraceHwndHost { // ------------------------------------------------------------------ // Constructors // ------------------------------------------------------------------ static TraceHwndHost() { // This tells tracing that IsEnabled should be true if we're in the debugger, // even if the registry flag isn't turned on. By default, IsEnabled is only // true if the registry is set. _avTrace.EnabledByDebugger = true; } } }