Viewport2DVisual3D.CacheMode Property

Gets or sets a cached representation of the Viewport2DVisual3D.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

member CacheMode : CacheMode with get, set

Property Value

Type: System.Windows.Media.CacheMode
A CacheMode that holds a cached representation of the Viewport2DVisual3D.

Set the CacheMode property when you need to increase performance for content that is time-consuming to render. For more information, see BitmapCache.

The Viewport2DVisual3D class projects 3-D content into 2-D to size the 2-D content in the 3-D element correctly.

Because caching always relies on the element’s size, instead of the transform applied to it, when you set the CacheMode property, initially your content may appear pixilated. This is because it is being upsampled to a much larger size than it was cached at. You can correct this situation by increasing the local size of your 2-D visual by setting the Height or Width properties. Also, you can increase the RenderAtScale on the CacheMode until the content reaches an acceptable level of clarity.

.NET Framework

Supported in: 4.5.3, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft