--- title: "Label" ms.date: "03/30/2017" f1_keywords: - "AutoGeneratedOrientationPage" helpviewer_keywords: - "controls [WPF], Label" - "Label control [WPF]" ms.assetid: 241c1ce2-60f8-4613-a0ec-9b9bb25fb6af --- # Label controls usually provide information in the user interface (UI). Historically, a has contained only text, but because the that ships with Windows Presentation Foundation (WPF) is a , it can contain either text or a . A provides both functional and visual support for access keys. It is frequently used to enable quick keyboard access to controls such as a . To assign a to a , set the property to the control that should get focus when the user presses the access key. The following image shows a "Theme" that targets a . When the user presses T, the receives focus. For more information, see [How to: Set the Target Property of a Label](/previous-versions/dotnet/netframework-3.5/ms752101(v=vs.90)). ![Screenshot of Display Properties dialog showing labeled by usage.](./media/label/display-properties-labeled-by.png "LabeledBy") ## In This Section [How to: Create a Control That Has an Access Key and Text Wrapping](how-to-create-a-control-that-has-an-access-key-and-text-wrapping.md) ## Reference