IVisualTreeService2::ReplaceResource method (xamlom.h)
Replaces an existing resource with a new one of the same type.
Syntax
HRESULT ReplaceResource(
[in] InstanceHandle resourceDictionary,
[in] InstanceHandle key,
[in] InstanceHandle newValue
);
Parameters
[in] resourceDictionary
The dictionary that contains the resource to replace.
[in] key
The key of the resource to replace.
[in] newValue
The value to replace the resource with.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | xamlom.h |