Text in Xamarin.Forms
Using Xamarin.Forms to enter or display text.
Xamarin.Forms has three primary views for working with text:
- Label — for presenting single or multi-line text. Can show text with multiple formatting options in the same line.
- Entry — for entering text that is only one line. Entry has a password mode.
- Editor — for entering text that could take more than one line.
Label view is used to display text. It can show multiple lines of text or a single line of text.
Label can present text with multiple formatting options used in inline. The label view can wrap or truncate text when it can't fit on one line.
See the Label article for more detailed information.
For information on customizing the font used in a label, see Fonts.
Entry is used to accept single-line text input.
Entry offers control over colors and fonts.
Entry has a password mode and can show placeholder text until text is entered.
See the Entry article for more information.
Note that, unlike
Entry cannot have custom font settings.
Editor is used to accept multi-line text input.
Editor offers control over colors and fonts.
See the Editor article for more information.
Many controls support different font settings using the built-in fonts on each platform, or custom fonts included with your app. See the Fonts article for more detailed information.