PDF for offline use
Sample Code:

Let us know how you feel about this

Translation Quality


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.

Text appearance can be changed using built-in or custom styles and some controls support custom fonts.


The 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, but cannot have customized 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 Label, Entry cannot have custom font settings.


Editor is used to accept multi-line text input. Editor can have a custom background color, but text color and font cannot be altered.

See the Editor article for more information.


The Label control supports 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.


Refer to working with styles to learn how to set up font, color, and other display properties that apply across multiple controls.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.