maui-devexpress-dot-maui-dot-editors-dot-editbase-bd67a62f.md
Gets or sets the font family that the editor uses for input text, label and placeholder. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public string TextFontFamily { get; set; }
| Type | Description |
|---|---|
| String |
The font family name.
|
To apply a custom font, add the font file to your solution, and then assign it to the editor’s TextFontFamily property.
This example shows how to apply the Verdana font.
Add the font file to your platform-specific projects:
In the App.xaml file, add the following lines to the ResourceDictionary section:
Set the TextFontFamily property to the key defined for the custom font:
Note
The TextFontAttributes 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.
See Also