DetailFormPage Class
A form that is used to show detail information about a data control item.
Namespace: DevExpress.Maui.Editors
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
[XamlFilePath("Common/CRUD/DefaultDetailFormViews/DetailFormPage.xaml")]
public class DetailFormPage :
ContentPage,
IDetailFormPage
Remarks
Handle the DataGridView.DetailFormShowing or DXCollectionView.DetailFormShowing event and use the e.Content
property to access the detail form page and customize it in the event handler.
The following example calls the DXCollectionView.ShowDetailForm method to invoke a detail view form on an item tap. In the CollectionView DetailFormShowing
event handler, the example specifies the detail view form title and hides the Delete button from the toolbar:
<dxcv:DXCollectionView ...
DetailFormShowing="collectionView_DetailFormShowing">
private void collectionView_DetailFormShowing(object sender, DetailFormShowingEventArgs e) {
if (e.ViewModel is not DetailFormViewModel) return;
DetailFormPage form = (DetailFormPage)e.Content;
form.TitleLabel.Text = "View Contact info";
form.DeleteToolbarButton.IsVisible = false;
}
private void collectionView_Tap(object sender, DevExpress.Maui.CollectionView.CollectionViewGestureEventArgs e) {
collectionView.ShowDetailForm(e.ItemHandle);
}
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