Back to Devexpress

EditBase.BottomTextFontFamily Property

maui-devexpress-dot-maui-dot-editors-dot-editbase-c583f2b6.md

latest3.1 KB
Original Source

EditBase.BottomTextFontFamily Property

Gets or sets the font family name for the editor’s help and error text. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public string BottomTextFontFamily { get; set; }

Property Value

TypeDescription
String

The font family name.

|

Remarks

You can display HelpText or ErrorText (if the HasError property is true) below an editor. Note that changes to the BottomTextFontFamily property affect both HelpText and ErrorText.

To apply a custom font, add the font file to your solution, and then assign it to the editor’s BottomTextFontFamily property.

This example shows how to apply the Verdana font.

  1. Add the font file to your platform-specific projects:

  2. In the App.xaml file, add the following lines to the ResourceDictionary section:

  3. Set the BottomTextFontFamily property to the key defined for the custom font:

Note

The BottomTextFontAttributes property affects the default font only. If you need to apply a bold or an italic custom font, use the corresponding font style file as described above.

You can also use the following properties to configure the help/error text appearance in different states:

|

Property

|

Description

| | --- | --- | |

BottomTextFontAttributes
BottomTextFontSize

|

Configure the font settings for text displayed below the editor.

| |

HelpTextColor
DisabledHelpTextColor

|

Specify the help text color for different states of an editor.

| |

ErrorColor

|

Gets or sets the error message text color.

| |

ReserveBottomTextLine

|

Gets or sets whether to reserve a line to display error text.

| |

BottomTextTopIndent

|

Sets the distance between the editor’s help or error text and its bottom border.

|

See Also

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace