次の方法で共有


IXRUIElement::SetCacheMode (Windows Embedded CE 6.0)

1/6/2010

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 Silverlight 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

For more information about hardware acceleration, see Implement Hardware Acceleration for Graphics in Silverlight for Windows Embedded.

.NET Framework Equivalent

None.

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRUIElement
IXRUIElement::GetCacheMode