Partager via


IXRFrameworkElement::GetResources (Windows Embedded CE 6.0)

1/6/2010

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(
    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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRFrameworkElement