ContextualAlternates Attached Property
Collapse the table of content
Expand the table of content

Typography.ContextualAlternates Attached Property

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

Gets or sets a value that determines whether custom glyph forms can be used based upon the context of the text being rendered.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
See GetContextualAlternates, SetContextualAlternates

Property Value

Type: System.Boolean
true if custom glyph forms can be used; otherwise, false. The default value is true.

This property gets or sets a value on the object that owns a Typography property, which is the only way to access a Typography class instance. In addition, this property supports an attached property usage so that it can be set on text-containing objects in XAML.

Random contextual alternates provide multiple substitute glyphs for a single character. When implemented with script-type fonts, this feature can simulate handwriting by using of a set of randomly chosen glyphs with slight differences in appearance.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft