UIElement.CacheMode 属性

定义

获取或设置 UIElement 的缓存表示形式。Gets or sets a cached representation of the UIElement.

public:
 property System::Windows::Media::CacheMode ^ CacheMode { System::Windows::Media::CacheMode ^ get(); void set(System::Windows::Media::CacheMode ^ value); };
public System.Windows.Media.CacheMode CacheMode { get; set; }
member this.CacheMode : System.Windows.Media.CacheMode with get, set
Public Property CacheMode As CacheMode

属性值

CacheMode,用于容纳 UIElement 的缓存表示形式。A CacheMode that holds a cached representation of the UIElement.

注解

如果需要提高呈现所需的内容的性能,请设置 CacheMode 属性。Set the CacheMode property when you need to increase performance for content that is time consuming to render. 有关详细信息,请参阅 BitmapCacheFor more information, see BitmapCache.

适用于

另请参阅