This topic has not yet been rated - Rate this topic

RenderOptions.TextRenderingMode Attached Property

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets a value that indicates whether text rendering is optimized for readability.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
See GetTextRenderingMode, SetTextRenderingMode

Property Value

Type: System.Windows.Media.TextRenderingMode
A value that indicates whether text rendering is optimized for readability.

Dependency property identifier field: TextRenderingModeProperty

By default, Silverlight optimizes text for readability. Although this is usually desirable, it can have a large performance impact when you animate the scale or rotation of text. This is because changing size or rotation results in recalculating how the glyph is most legible at that font size and position – and an animation changes that size or position 60 times a second.

When animating the rotation or scale of text, you will likely get better performance by turning off this readability optimization by setting the TextRenderingMode property to RenderForAnimation and then setting it back to Default when the animation ends.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)