IXRUIElement::SetCacheMode (Compact 2013)
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;
[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)
- Resources or child objects that are animation storyboards
.NET Framework Equivalent