maui-devexpress-dot-maui-dot-editors-dot-editbase-7dd6c297.md
Gets or sets the editor’s label text. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public string LabelText { get; set; }
| Type | Description |
|---|---|
| String |
The editor’s label text.
|
A label is a short text that informs users about the purpose of the editor. Use the LabelText property to specify the label text.
|
BoxMode = Outlined
|
BoxMode = Filled
|
The position of the label depends on the editor state:
To pin the label to the top of the editor box, set the IsLabelFloating property to false.
A label font family and attributes depend on the editor’s TextFontFamily and TextFontAttributes properties. To specify the font size for a label displayed near the top of the editor box, use the LabelFontSize property.
You can also customize label text color in different states with the LabelColor, FocusedLabelColor and DisabledLabelColor properties.
This example shows how to change the label text color and adjust font settings:
|
State
|
Appearance
| | --- | --- | |
Unfocused
|
| |
Focused
|
|
<dxe:TextEdit IsLabelFloating="False"
LabelText="Login"
LabelColor="#404040"
LabelFontSize="20"
FocusedLabelColor="#404040"
BorderColor=" #fe7c00"
FocusedBorderColor="#a5a5a5"/>
See Also