IXRApplication::LoadResourceDictionary (Windows Embedded CE 6.0)
1/6/2010
This method parses the specified XAML file that contains the resources that belong to this application.
Syntax
virtual HRESULT STDMETHODCALLTYPE LoadResourceDictionary(
XRXamlSource* pSource,
IXRResourceDictionary** ppDictionary
) = 0;
Parameters
- pSource
[in] Pointer to an XRXamlSource structure that describes the XAML source to parse.
ppDictionary
[out] Pointer to an IXRResourceDictionary pointer that represents the dependency object that was created from the XAML.This parameter is optional.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
This method is used to parse a XAML file that includes resources that must be parsed into a resource dictionary. You should parse this XAML file before you call IXRApplication::ParseXaml to parse other source XAML files.
If you use Microsoft Expression Blend 2 to generate the source XAML files for your application, the name of the generated XAML file that includes application-scoped resources is Application.Xaml. This file should only be parsed by LoadResourceDictionary, and not by ParseXaml.
The following code shows an example of XAML markup that must be parsed into a resource dictionary:
<Application.Resources>
<SolidColorBrush x:Key="Text_DefaultColor" Color="#FF292F33"/>
</Application.Resources>
.NET Framework Equivalent
None.
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |