Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.26 KB

debugsettings_xamlresourcereferencefailed.md

File metadata and controls

28 lines (17 loc) · 1.26 KB
-api-id -api-type
E:Microsoft.UI.Xaml.DebugSettings.XamlResourceReferenceFailed
winrt event

Microsoft.UI.Xaml.DebugSettings.XamlResourceReferenceFailed

-description

Occurs when a reference to a XAML resource cannot be resolved.

-remarks

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.

-see-also

IsXamlResourceReferenceTracingEnabled, XamlResourceReferenceFailedEventArgs.Message, ResourceDictionary and XAML resource references

-examples