IVisualTreeServiceCallback3::OnXamlRootChange method (xamlom.winui.h)
Communicates when a XamlRoot root is added or removed.
Syntax
HRESULT OnXamlRootChange(
InstanceHandle root,
VisualMutationType mutationType
);
Parameters
root
The XamlRoot.
mutationType
Specifies whether the root is being added or removed.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This callback method is invoked when a XamlRoot root is added or removed. The mutationType
parameter specifies whether the root is being added or removed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 (with Windows App SDK 1.0 or later) |
Header | xamlom.winui.h |