New to Telerik UI for WPFStart a free 30-day trial

Label

Class

Represents the text label for a control and provides support for access keys.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Common")]
public class Label : Label

Inheritance: objectLabel

Derived Classes: DialogLabelHeadingLabel

Constructors

Initializes a new instance of the Label class.

C#
public Label()

Methods

Changes the visual state.

C#
protected virtual void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

If set to true [use transitions].

Updates the visual state.

C#
protected void GoToState(bool useTransitions, params string[] stateNames)
Parameters:useTransitionsboolstateNamesstring[]

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .

C#
public override void OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.