Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 2.68 KB

File metadata and controls

52 lines (38 loc) · 2.68 KB
description Use a label to indicate to the user what they should enter into an adjacent control. You can also label a group of related controls, or display instructional text near a group of related controls.
title Labels
ms.assetid CFACCCD4-749F-43FB-947E-2591AE673804
label Labels
template detail.hbs
ms.date 05/19/2017
ms.topic article
keywords windows 10, uwp
pm-contact miguelrb
design-contact ksulliv
doc-status Published
ms.localizationpriority medium

Labels

A label is the name or title of a control or a group of related controls.

Important APIs: Header property, TextBlock class

In XAML, many controls have a built-in Header property that you use to display the label. For controls that don't have a Header property, or to label groups of controls, you can use a TextBlock instead.

a screenshot that illustrates the standard label control

Recommendations

  • Use a label to indicate to the user what they should enter into an adjacent control. You can also label a group of related controls, or display instructional text near a group of related controls.
  • When labeling controls, write the label as a noun or a concise noun phrase, not as a sentence, and not as instructional text. Avoid colons or other punctuation.
  • When you do have instructional text in a label, you can be more generous with text-string length and also use punctuation.

Get the sample code

Related topics