EnableCacheVisualization Property
Collapse the table of content
Expand the table of content

Settings.EnableCacheVisualization Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether to use a non-production analysis visualization mode, which shows areas of a page that are not being GPU accelerated with a colored overlay. Do not use in production code.

Namespace:  System.Windows.Interop
Assembly:  System.Windows (in System.Windows.dll)

public bool EnableCacheVisualization { get; set; }

Property Value

Type: System.Boolean
true if cache visualization is enabled; otherwise, false.

During profiling and performance tuning phases of application development, you can set EnableCacheVisualization to true to produce an overlay visualization of the areas in your UI that are being hardware accelerated.

Important noteImportant Note:

Do not enable cache visualization in production code.

To visualize areas in your UI that are GPU accelerated, you must also enable GPU acceleration and set the cache mode for specific objects. Set EnableGPUAcceleration to true to enable GPU acceleration.

To set the cache mode, set the UIElement.CacheMode property on specific objects that might invoke the GPU acceleration path for rendering.

NoteNote:

Colored regions show textures that are passed to the GPU for acceleration.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft