-api-id | -api-type |
---|---|
E:Microsoft.UI.Xaml.DebugSettings.XamlResourceReferenceFailed |
winrt event |
Occurs when a reference to a XAML resource cannot be resolved.
IsXamlResourceReferenceTracingEnabled must be true
in order for this event to be raised.
Error information is also logged to the native debug output when the event is raised, so attaching a XamlResourceReferenceFailed
handler yourself is an advanced scenario for getting the raw message programmatically.
See XamlResourceReferenceFailedEventArgs.Message for more info about the error information that is provided.
IsXamlResourceReferenceTracingEnabled, XamlResourceReferenceFailedEventArgs.Message, ResourceDictionary and XAML resource references