-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.DebugSettings.IsXamlResourceReferenceTracingEnabled |
winrt property |
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.
true
to engage the XAML resource reference tracing feature of Microsoft Visual Studio; otherwise, false
. The default is true
.
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.
XamlResourceReferenceFailed, XamlResourceReferenceFailedEventArgs.Message, ResourceDictionary and XAML resource references