Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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.


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

pCacheMode

[in] Pointer to an IXRCacheMode-derived object.

Returns an HRESULT that indicates success or failure.

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

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

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

Show:
© 2015 Microsoft