Share via


DebugSettings.IsXamlResourceReferenceTracingEnabled Property

Definition

Gets or sets a value that indicates whether to engage the XAML resource reference tracing feature of Microsoft Visual Studio when the app runs. When engaged and a XAML resource reference error occurs, the XamlResourceReferenceFailed event is raised and error information is logged in the native debug output.

public:
 property bool IsXamlResourceReferenceTracingEnabled { bool get(); void set(bool value); };
bool IsXamlResourceReferenceTracingEnabled();

void IsXamlResourceReferenceTracingEnabled(bool value);
public bool IsXamlResourceReferenceTracingEnabled { get; set; }
var boolean = debugSettings.isXamlResourceReferenceTracingEnabled;
debugSettings.isXamlResourceReferenceTracingEnabled = boolean;
Public Property IsXamlResourceReferenceTracingEnabled As Boolean

Property Value

Boolean

bool

true to engage the XAML resource reference tracing feature of Microsoft Visual Studio; otherwise, false. The default is true.

Remarks

This property is true by default. When XAML resource reference tracing is enabled and you run your app with the native debugger attached, any XAML resource reference errors appear in the Output window in Microsoft Visual Studio and cause a XamlResourceReferenceFailed event to be raised.

See XamlResourceReferenceFailedEventArgs.Message for more info about the error information that is provided.

Applies to

See also