Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DetailEditFormPage Class

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

#Declaration

C#
[XamlFilePath("Common/CRUD/DefaultDetailFormViews/DetailEditFormPage.xaml")]
public class DetailEditFormPage :
    ContentPage,
    IDetailEditFormPage,
    IDetailFormPage

#Remarks

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:

See Also