Back to Devexpress

EditBase.TextFontFamily Property

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

latest1.6 KB
Original Source

EditBase.TextFontFamily Property

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

Declaration

csharp
public string TextFontFamily { get; set; }

Property Value

TypeDescription
String

The font family name.

|

Remarks

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.

  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 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

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace