Skip to content

ImageVectorCacheMode enumeration

Controls how Image renders a vector source.

Guide: C# Markup guide

public enum ImageVectorCacheMode
name value description
Cached 0 Rasterizes into a cached bitmap before the frame that needs it is drawn, so no frame shows content older than the source. A size change is the exception: it rasterizes on a background thread while the previous bitmap is stretched into the new region.
CachedDeferred 1 Rasterizes into a cached bitmap on a background thread. A frame may show the previous bitmap, or nothing at all before the first one is ready.
Direct 2 Draws the vector into the target every frame and holds no bitmap.