Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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