Skip to main content

Autofill in DevExpress Data Editors for .NET MAUI

  • 2 minutes to read

Data editors can obtain their values from autofill services. Note that the device should have an enabled autofill service that contains required data (names, dates, passwords, and so on).

DevExpress Editors for .NET MAUI -- Autofill functionality

The following editors support autofill:

Depending on the target platform, these editors use specific native mechanisms to implement autofill functionality. For more platform-related information, refer to the following topics:

Specify Data Hints

Use the AutofillContentType property to specify a data hint. An autofill service uses that hint to determine which value should be assigned to the editor. Supported hints depend on editor type and on target platform (Android or iOS).

The following table lists AutofillContentType properties and enumerators that contain available hints:

Property Available Hints
TextEdit.AutofillContentType AutofillContentType
MultilineEdit.AutofillContentType AutofillContentType
PasswordEdit.AutofillContentType PasswordAutofillContentType
DateEdit.AutofillContentType DateAutofillContentType

Example

The example below shows how to configure autofill hints for data editors:

View Example

<dxe:TextEdit AutofillContentType="Username" .../>
<dxe:PasswordEdit AutofillContentType="Password" .../>
<dxe:TextEdit AutofillContentType="EmailAddress" .../>
<dxe:DateEdit AutofillContentType="AndroidBirthDate" .../>
<dxe:TextEdit AutofillContentType="PhoneNumber" .../>

Note

Data editors do not validate data you injected using autofill functionality. If you want to validate editor input, refer to the following help topic: Data Validation in DevExpress Data Editors for .NET MAUI.