IXRUIElement::SetCacheMode (Compact 2013)

3/28/2014

This method sets a value to indicate that this UI element will use bitmap caching and hardware-accelerated graphics when it is displayed at run time.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetCacheMode(
    IXRCacheMode* pCacheMode
) = 0;

Parameters

  • pCacheMode
    [in] Pointer to an IXRCacheMode-derived object.

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pCacheMode is not a XAML for Windows Embedded object.

Remarks

To request support for bitmap caching and hardware-accelerated graphics for this UI element, call this method and pass in an IXRCacheMode derived object.

You can use bitmap caching for a UI element if it implements one of the following features:

  • Transformations (such as translating, rotating, or stretching)
  • Clipping
  • Blending
  • Resources or child objects that are animation storyboards

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::GetCacheMode