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
[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:
- CRUD Operations in a Data-Bound Collection View for .NET MAUI
- CRUD Operations in a Data-Bound Data Grid View for .NET MAUI
Implements
Microsoft.Maui.Controls.ITabStopElement
Microsoft.Maui.IPage
Microsoft.Maui.IFrameworkElement
Inheritance
System.Object
See Also