Partager via


IXRFrameworkElement::GetResources (Compact 2013)

3/28/2014

This method retrieves the locally-defined resource dictionary.

In XAML, you can establish resource items as child elements of the <object.Resources> property element, through implicit collection syntax in XAML.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetResources(
    __out IXRResourceDictionary **ppResources
) = 0;

Parameters

  • ppResources
    [out] Pointer to an IXRResourceDictionary pointer that references the current locally-defined dictionary of resources.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Resources created in XAML will not be available unless an application creates a resource manager and registers it by calling IXRApplication::RegisterResourceManager, before it parses the XAML and creates a visual host.

.NET Framework Equivalent

System.Windows.FrameworkElement.Resources

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement