IVisualTreeService::GetPropertyValuesChain method (xamlom.h)

Gets an array of all the properties set on the element passed in, and an array of all the styles involved in setting the effective values of the properties.

Syntax

HRESULT GetPropertyValuesChain(
  InstanceHandle      instanceHandle,
  unsigned int        *pSourceCount,
  PropertyChainSource **ppPropertySources,
  unsigned int        *pPropertyCount,
  PropertyChainValue  **ppPropertyValues
);

Parameters

instanceHandle

A handle to the element to query properties on.

pSourceCount

The count of the property sources array.

ppPropertySources

An array of property sources.

pPropertyCount

The count of the property values array.

ppPropertyValues

An array of property values.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. This method should not fail in normal conditions.

Remarks

GetPropertyValuesChain returns an array of PropertyChainValue structs that represents all the properties set on the element passed in. It also returns an array of PropertyChainSource structs that represents all the styles involved in setting the effective value of each property.

Requirements

   
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header xamlom.h

See also

IVisualTreeService