ServiceCollectionExtensions.AddTransientDXPopup(IServiceCollection, Type, Type) Method
In This Article
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 | IService |
The |
popup |
Type | The popup view type. |
popup |
Type | The popup View Model type. |
#Returns
Type | Description |
---|---|
IService |
The |
See Also