maui-devexpress-dot-maui-dot-editors-bfc67715.md
A form that is used to edit a data control item.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
[XamlFilePath("Common/CRUD/DefaultDetailFormViews/DetailEditFormPage.xaml")]
public class DetailEditFormPage :
ContentPage,
IDetailEditFormPage,
IDetailFormPage
The following example handles the DXCollectionView.DetailFormShowing event to specify the edit form title:
private void collectionView_DetailFormShowing(object sender, DetailFormShowingEventArgs e) {
if (e.ViewModel is not DetailEditFormViewModel editViewModel)
return;
bool isNew = editViewModel.IsNew;
if (isNew) {
DetailEditFormPage form = (DetailEditFormPage)e.Content;
form.TitleLabel.Text = "Add new Contact";
}
}
To invoke a form to create a new item, the example calls the DXCollectionView.ShowDetailNewItemForm method.
For more information about detail edit forms, refer to the following help topics:
Show 16 items
Microsoft.Maui.Controls.ITabStopElement
Microsoft.Maui.IPage
Microsoft.Maui.IFrameworkElement
System.Object BindableObject Element NavigableElement VisualElement Page TemplatedPage ContentPage DetailEditFormPage
YieldIfNotNull<DetailEditFormPage>()
See Also