The Xamarin.iOS DataForm control is used to display and edit the properties of any data object using a wide range of built-in editors for different data types. Custom editors are also supported. It simplifies the development of various forms such as login, reservation, and data entry. It supports built-in data validation and data annotation. Also, it provides support for linear and grid layouts, label positioning options, grouping, and more features to design the UI as you need.
The data form includes built-in support for various editors to handle different data types, as well as custom editors. Built-in editors are automatically generated based on data annotations and the type of field. The following built-in editors are available:
Editing support with LostFocus, PropertyChanged, and Explicit commit modes determine when an edited value should be updated in the data object.
The data form supports a read-only display mode that also allows specific fields to be made read-only.
Provides support for linear and grid layouts. The linear layout arranges items in a single column, whereas the grid layout arranges items in a predefined number of columns.
Labels can be positioned to the left or the top of the editor.
Each data field’s width and height can be customized. The width ratio of labels and editors can also be customized.
Display watermarks to guide end users.
The label can be displayed with image also for better illustration.
Data form fields can be customized based data annotation attributes.