Skip to main content

TextBlockExtensions

Description​

TextBlockExtensions adds Fluent typography and related attached properties to native text. TextBlockExtensions is shown within TextBlock; it is not a separate gallery destination.

The gallery image shows the typography ramp on a native TextBlock. It does not isolate an attached TextBlockExtensions property.

TextBlockExtensions in light mode TextBlockExtensions in dark mode

Example usage​

<TextBlock Text="Section heading"
fluence:TextBlockExtensions.Typography="Subtitle" />

State and behavior​

Attached typography and selection properties change native text presentation.

Reference​