IXRApplication::GetResourceDictionary (Compact 2013)
3/28/2014
This method retrieves the top-level IXRResourceDictionary object that is being used to resolve {StaticResource} bindings while parsing XAML.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetResourceDictionary(
IXRResourceDictionary** ppResourceDictionary
) = 0;
Parameters
- ppResourceDictionary
[out] Pointer to an IXRResourceDictionary pointer that represents the resource dictionary object.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
To load the resources defined in an application-resources XAML file into a resource dictionary, first call IXRApplication::LoadResourceDictionary. Then, you can retrieve a pointer to the resource dictionary by calling this method.
The resources stored in the IXRResourceDictionary collection are considered application-scoped resources. They are available globally to all elements in an application, instead of only to an instance of a framework element. For a collection of resources that is available only to a specific framework element, see IXRFrameworkElement::GetResources.
.NET Framework Equivalent
None.
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |