BitmapCache class

This topic has not yet been rated - Rate this topic

Represents the behavior of caching a visual element or tree of elements as bitmap surfaces.

Inheritance

Object
  DependencyObject
    CacheMode
      BitmapCache

Syntax


public sealed class BitmapCache : CacheMode

Attributes

ActivatableAttribute(NTDDI_WIN8)
MarshalingBehaviorAttribute(Agile)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)
WebHostHiddenAttribute()

Members

The BitmapCache class has these types of members:

Constructors

The BitmapCache class has these constructors.

ConstructorDescription
BitmapCache Initializes a new instance of the BitmapCache class.

 

Methods

The BitmapCache class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The BitmapCache class has these properties.

PropertyAccess typeDescription

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

 

Remarks

This class is infrastructure, and provides the underlying run-time value for the behavior when you specify CacheMode="BitmapCache" in XAML markup, or create a new BitmapCache in code to set UIElement.CacheMode.

Examples

Use any of these syntax forms to set UIElement.CacheMode to a value other than the null default. Don't do this routinely without testing first, see "Remarks" in UIElement.CacheMode.


<Canvas CacheMode="BitmapCache">
  ...
</Canvas>


canvas1.CacheMode = new BitmapCache(); //canvas1 is an existing named element in UI

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

UIElement.CacheMode
IsOverdrawHeatMapEnabled
Optimize loading XAML

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.