Back to Devexpress

DetailFormPage Class

maui-devexpress-dot-maui-dot-editors-02e7b99e.md

latest4.6 KB
Original Source

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

csharp
[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:

xaml
<dxcv:DXCollectionView ...
                       DetailFormShowing="collectionView_DetailFormShowing">
csharp
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:

Implements

Show 15 items

INotifyPropertyChanged

IAnimatable

Microsoft.Maui.Controls.ITabStopElement

ILayout

IPageController

IVisualElementController

IElementController

IElementConfiguration<Page>

Microsoft.Maui.IPage

IHotReloadableView

IView

Microsoft.Maui.IFrameworkElement

ITransform

IReplaceableView

IDetailFormPage

Inheritance

System.Object BindableObject Element NavigableElement VisualElement Page TemplatedPage ContentPage DetailFormPage

Extension Methods

Yield<DetailFormPage>()

YieldIfNotNull<DetailFormPage>()

See Also

DetailFormPage Members

DevExpress.Maui.Editors Namespace