IVisualTreeService3::GetDictionaryItem method (xamlom.h)

Gets an item from a ResourceDictionary.

Syntax

HRESULT GetDictionaryItem(
  [in]  InstanceHandle dictionaryHandle,
  [in]  LPCWSTR        resourceName,
  [in]  BOOL           resourceIsImplicitStyle,
  [out] InstanceHandle *resourceHandle
);

Parameters

[in] dictionaryHandle

The dictionary to get the resource from.

[in] resourceName

The name of the resource to get.

[in] resourceIsImplicitStyle

true if the resource is an implicit style; otherwise, false.

[out] resourceHandle

The resource that was retrieved.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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

See also

IVisualTreeService3