Skip to main content
All docs
V25.1
  • ServiceCollectionExtensions.AddTransientDXPopup<TPopupView, TPopupViewModel>(IServiceCollection) Method

    Registers a transient service for a popup view and its View Model in the specified IServiceCollection. The method binds a popup view to its View Model.

    Namespace: DevExpress.Maui

    Assembly: DevExpress.Maui.Controls.dll

    NuGet Package: DevExpress.Maui.Controls

    Declaration

    public static IServiceCollection AddTransientDXPopup<TPopupView, TPopupViewModel>(
        this IServiceCollection services
    )
        where TPopupView : DXPopupBase where TPopupViewModel : IDXPopupViewModel

    Parameters

    Name Type Description
    services IServiceCollection

    The IServiceCollection where the popup view and its View Model are registered as transient services.

    Type Parameters

    Name Description
    TPopupView

    The popup view type.

    TPopupViewModel

    The popup View Model type.

    Returns

    Type Description
    IServiceCollection

    The IServiceCollection that includes the popup view and its View Model registered as transient services.

    See Also