IVisualTreeService3::RemoveDictionaryItem method (xamlom.h)
Removes an item from a ResourceDictionary, and re-resolves all elements in the tree that reference a resource with the specified key.
Syntax
HRESULT RemoveDictionaryItem(
[in] InstanceHandle dictionaryHandle,
[in] InstanceHandle resourceKey
);
Parameters
[in] dictionaryHandle
The dictionary to remove the resource from.
[in] resourceKey
The key of the resource to remove.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Any invalid resource references will result in the value being cleared, and IVisualTreeServiceCallback2 will be notified.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1703 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | xamlom.h |