Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Controls
Control Library
Label

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Windows Presentation Foundation
Label

Label controls usually provide information in the user interface (UI). Historically, a Label has contained only text, but because the Label that ships with Windows Presentation Foundation (WPF) is a ContentControl, it can contain either text or a UIElement. For more information, see Controls Content Model Overview.

A Label provides both functional and visual support for access keys. It is frequently used to enable quick keyboard access to controls such as a TextBox. To assign a Label to a Control, set the Label..::.Target property to the control that should get focus when the user presses the access key.

The following image shows a Label "Themes" that targets a ComboBox. When the user presses , the ALT+TComboBox receives focus. For more information, see How to: Set the Target Property of a Label.

Display properties shows labeled by usage
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker