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