Label

The Label control allows you to put a short line of text on the screen. A TextBlock is preferred for multiple lines of text. Unlike a TextBlock, which is text-only, the Label control has a Content property which lets it host any kind of control (usually an image).

Labels are typically used to display single-line prompts alongside controls that require user input or a user selection.

Properties

Key properties of Label include:

  • Content. The text to be displayed. For example, a prompt displayed alongside a CheckBox.
  • Font. Font (Family, Size, Style and Weight) characteristics can be set for the displayed text.