New to Telerik UI for .NET MAUIStart a free 30-day trial

Migrate from Xamarin.Forms DataForm to .NET MAUI DataForm

The Telerik UI for .NET MAUI DataForm control has been designed and built from the ground up as a new control with a new API and significant improvements over its Xamarin counterpart.

The tables in the following sections list the differences between the APIs of the Xamarin.Forms DataForm and .NET MAUI DataForm.

Migrate the Namespaces

ControlControl nameXAML NamespcaceC# Namespace
Xamarin DataFormRadDataFormxmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"using Telerik.XamarinForms.Input;
.NET MAUI DataFormRadDataFormxmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"using Telerik.Maui.Controls;

API Changes

Compared API changes in Xamarin.Forms DataForm and .NET MAUI DataForm are described in the table below:

Xamarin DataForm.NET MAUI DataForm
Sourcegets the data directly from the set BindingContext
Telerik.XamarinForms.Common.DataAnnotationsSystem.ComponentModel.DataAnnotations.DataAnnotations
RegisterEditorEditorGenerated
EditorValueChangedEditorValueChanged
N/AGroupGenerated
N/AHasPendingChanges
N/AHasValidationErrors
Validation modes - Immediate, OnLostFocus, ManualValidation modes - PropertyChanged(immediate), LostFocus, Explicit(manual)
ValidateAllValidateChanges
ValidatePropertyValidateChanges(string propertyName)
FormValidationCompletedValidationCompleted
PropertyValidationCompletedEditorValidationCompleted
Commit modes - Immediate, OnLostFocus, ManualCommit modes - PropertyChanged(immediate), LostFocus, Explicit(manual)
CommitAllCommitChanges
CommitPropertyCommitChanges(string propertyName)
N/ACancelChanges
N/ACancelChanges(string propertyName)
N/AValidateCommand
N/ACancelCommand
N/ACommitCommand
DataFormGroupStackLayoutDefinitionDataFormVerticalStackLayout
DataFormGroupGridLayoutDefinitionDataFormGridLayout
N/ADataFormCustomLayout

Editors

Telerik Xamarin.Forms DataForm control uses native editors while in the .NET MAUI DataForm editors the main controls used are from Telerik .NET MAUI and .NET MAUI.

Compared editors are displayed in the table below:

Xamarin DataForm.NET MAUI DataForm
TextEditorDataFormRadEntryEditor
SliderEditorYou can define a custom editor with a Slider control in it
PickerEditorDataFormRadComboBoxEditor or DataFormRadListPickerEditor
N/ADataFormRadEntryPasswordEditor
N/ADataFormRadTextMaskedEditor
N/ADataFormRadNumericMaskedEditor
N/ADataFormRadEmailMaskedEditor
N/ADataFormRadRegexMaskedEditor
IntegerEditorDataFormRadNumericEditor
DecimalEditorDataFormRadNumericEditor
NumberPickerEditorYou can define a DataFormRadComboBoxEditor, DataFormRadListPickerEditor, or a custom editor
CheckBoxEditorDataFormRadCheckBoxEditor
ToggleButtonEditorDataFormSwitchEditor
SegmentedEditorDataFormRadSegmentedEditor
DateEditorDataFormRadDatePickerEditor, DataFormDatePickerEditor
TimeEditorDataFormRadTimePickerEditor, DataFormTimePickerEditor
N/ARadDateTimePickerEditor
CustomEditorCustomEditor

See Also