Back to Devexpress

DetailEditFormPage Class

maui-devexpress-dot-maui-dot-editors-bfc67715.md

latest4.0 KB
Original Source

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

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

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

Implements

Show 16 items

INotifyPropertyChanged

IAnimatable

Microsoft.Maui.Controls.ITabStopElement

ILayout

IPageController

IVisualElementController

IElementController

IElementConfiguration<Page>

Microsoft.Maui.IPage

IHotReloadableView

IView

Microsoft.Maui.IFrameworkElement

ITransform

IReplaceableView

IDetailEditFormPage

IDetailFormPage

Inheritance

System.Object BindableObject Element NavigableElement VisualElement Page TemplatedPage ContentPage DetailEditFormPage

Extension Methods

Yield<DetailEditFormPage>()

YieldIfNotNull<DetailEditFormPage>()

See Also

DetailEditFormPage Members

DevExpress.Maui.Editors Namespace