DXPopupService.AddTransient<TPopupView, TPopupViewModel>(IServiceCollection) Method
In This Article
Registers a popup view and its View Model as transient services in the dependency injection container.
Namespace: DevExpress.Maui.Controls
Assembly: DevExpress.Maui.Controls.dll
NuGet Package: DevExpress.Maui.Controls
#Declaration
C#
public static void AddTransient<TPopupView, TPopupViewModel>(
IServiceCollection services
)
where TPopupView : DXPopupBase where TPopupViewModel : IDXPopupViewModel
#Parameters
Name | Type | Description |
---|---|---|
services | IService |
The collection of services used to register transient services for a popup view and its View Model. |
#Type Parameters
Name | Description |
---|---|
TPopup |
The popup view type. |
TPopup |
The popup View Model type. |
See Also