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(IServiceCollection, Type, Type) Method

Registers a transient service for the popup view in the specified IServiceCollection. This method binds the popup view to its View Model and enables dependency injection.

Namespace: DevExpress.Maui

Assembly: DevExpress.Maui.Controls.dll

NuGet Package: DevExpress.Maui.Controls

#Declaration

C#
public static IServiceCollection AddTransientDXPopup(
    this IServiceCollection services,
    Type popupViewType,
    Type popupViewModelType
)

#Parameters

Name Type Description
services IServiceCollection

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

popupViewType Type

The popup view type.

popupViewModelType Type

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