Windows.UI.Xaml.Controls.Control.FontSize

June 22, 2022 ยท View on GitHub

-description

Gets or sets the size of the text in this control.

-xaml-syntax

<control FontSize="double"/>

-property-value

The size of the text in the Control, in pixels. The default is 11.

-remarks

The unit measure for FontSize is pixels, measuring the line height of the characters in the font. The apparent size of text in the UI can vary based on the current scaling. If you want to use different FontSize values for different scalings, you can do this using the Resource Management System.

-examples

-see-also

Text controls, Text scaling, Adjust layout and fonts, and support RTL