RenderAtScale Property
Collapse the table of content
Expand the table of content

BitmapCache.RenderAtScale Property

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

Gets or sets the scale at which the object is rendered on the cached bitmap surface. Use this property for cached objects that are scaled to improve performance.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double RenderAtScale { get; set; }
<BitmapCache RenderAtScale="double" .../>

Property Value

Type: System.Double
The scale at which the object is rendered as a cached bitmap. If you specify a negative number, an error will be thrown. The default is 1.

Dependency property identifier field: RenderAtScaleProperty

By default, when you set the CacheMode of a UIElement to a BitmapCache, the object is cached as a bitmap with a scale of 1 (its natural size). However, if you scale the cached UIElement, for example by using a ScaleTransform, set the RenderAtScale property to the same scale.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft