maui-devexpress-dot-maui-dot-editors-02e7b99e.md
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
[XamlFilePath("Common/CRUD/DefaultDetailFormViews/DetailFormPage.xaml")]
public class DetailFormPage :
ContentPage,
IDetailFormPage
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:
Show 15 items
Microsoft.Maui.Controls.ITabStopElement
Microsoft.Maui.IPage
Microsoft.Maui.IFrameworkElement
System.Object BindableObject Element NavigableElement VisualElement Page TemplatedPage ContentPage DetailFormPage
YieldIfNotNull<DetailFormPage>()
See Also