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.
Syntax
Public Property RenderAtScale As Double
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.
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone