Partager via


IXRResourceManager (Compact 2013)

3/28/2014

This C++ class provides support to the internal imaging factory for resolving and loading resources, including images and font Uniform Resource Identifiers (URIs).

Syntax

class IXRResourceManager : public IUnknown

Methods

Methods

Description

IXRResourceManager::ResolveImageResource

Called by XAML for Windows Embedded to find the location of images declared in XAML markup, which XAML for Windows Embedded is currently loading.

You can override this method to provide custom code that supports XAML for Windows Embedded when it loads an image resource from XAML into a format compatible with XAML for Windows Embedded.

IXRResourceManager::ResolveFontResource

Called by XAML for Windows Embedded to find the location of fonts declared in XAML markup, which XAML for Windows Embedded is currently loading.

You can override this method to provide custom code that supports XAML for Windows Embedded when it loads an image resource from XAML into a format compatible with XAML for Windows Embedded.

IXRResourceManager::ResolveStringResource

Called by XAML for Windows Embedded to load a string resource that is declared in XAML as a text binding.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

This class also supports methods on the IUnknown interface.

To create and register a resource manager for your application, you must pass an IXRResourceManager object into a call to IXRApplication::RegisterResourceManager. To release the customized IXRResourceManager object, you must pass a NULL into a call to IXRApplication::RegisterResourceManager.

When you create a class instance, use an IXRResourceManagerPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Application Management