Gets or sets a value that indicates the scale that is applied to the bitmap.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Use the property to render the BitmapCache at a multiple of the normal bitmap size. The normal size is determined by the local size of the element.
Values greater than 1 increase the resolution of the bitmap relative to the native resolution of the element, and values less than 1 decrease the resolution. For example, if the property is set to 2.0, and you apply a scale transform that enlarges the content by a factor of 2, the content will have the same visual quality as the same content with set to 1.0 and a transform scale of 1.
When is set to 0, no bitmap is rendered. Negative values are clamped to 0.
If you change this value, the cache is regenerated at the appropriate new resolution.
The following images show how the same content appears for different values of the property.
RenderAtScale = 1
RenderAtScale = 0.5
RenderAtScale = 0.2
The following image shows a zoom transform that is applied to an ancestor of the cached element. When the zoom is set to 1 and is set to 1, the image quality is almost the same as when is set to 2. But when zoom is greater than 1, setting to 2 will have better image quality.
RenderAtScale = 1.0
RenderAtScale = 2.0
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.