Back to Devexpress

FormItemBase.DetailFontAttributes Property

maui-devexpress-dot-maui-dot-editors-dot-formitembase-5cf29876.md

latest1.9 KB
Original Source

FormItemBase.DetailFontAttributes Property

Gets or sets font attributes of the detail text. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public FontAttributes DetailFontAttributes { get; set; }

Property Value

TypeDescription
FontAttributes

A value that specifies text font attributes.

|

Remarks

The DetailFontAttributes property affects the default font only. If you need to apply a custom bold or italic font to the text, add the corresponding font style file to your solution and assign that font to the editor’s TextFontFamily property. Refer to the following page for more information: Fonts in .NET MAUI

Example

The markup below adds secondary text for a form item and configures text options :

xaml
<dxe:FormItem Detail="The reading mode adjusts colors and
              textures in order to reduce eye strain."
              DetailColor="LightGray"
              DetailFontAttributes="Italic"
              DetailFontFamily="OpenSansRegular"
              DetailFontSize="14"
              DetailLineBreakMode="TailTruncation"
              DetailMargin="4"
              DetailMaxLineCount="2"/>

See Also

FormItemBase Class

FormItemBase Members

DevExpress.Maui.Editors Namespace