Skip to main content

IDXPopupService.ShowPopup<TPopupViewModel>(Action<TPopupViewModel>) Method

Shows the custom pop-up view registered in IDXPopupService through the AddTransientDXPopup method. The ShowPopup method returns Task that contains the View Model and completes when the pop-up view closes.

Namespace: DevExpress.Maui.Mvvm

Assembly: DevExpress.Maui.Mvvm.dll

NuGet Package: DevExpress.Maui.Mvvm

Declaration

Task<TPopupViewModel> ShowPopup<TPopupViewModel>(
    Action<TPopupViewModel> init = null
)
    where TPopupViewModel : IDXPopupViewModel

Optional Parameters

Name Type Default Description
init Action<TPopupViewModel> null

The callback that is called when the View Model is created. The callback initializes the View Model.

Type Parameters

Name Description
TPopupViewModel

The View Model type.

Returns

Type Description
Task<TPopupViewModel>

An operation that executes asynchronously, contains the View Model, and completes when the pop-up view closes.

See Also