Skip to main content
All docs
V24.2

DialogServiceExtensions.ShowDialog(IDialogService, IEnumerable<UICommand>, String, String, Object, Object) Method

Shows a dialog window with the specified parameters.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.2.dll

Declaration

public static UICommand ShowDialog(
    this IDialogService service,
    IEnumerable<UICommand> dialogCommands,
    string title,
    string documentType,
    object parameter,
    object parentViewModel
)

Parameters

Name Type Description
service IDialogService

The dialog service.

dialogCommands IEnumerable<UICommand>

A set of UICommands displayed in the dialog window.

title String

The dialog window’s header text.

documentType String

The name of the class displayed in the dialog window.

parameter Object

The parameter that allows you to pass data to the View Model.

parentViewModel Object

The dialog’s parent View Model.

Returns

Type Description
UICommand

The clicked button’s UICommand value.

Remarks

Call this method if your dialog View already contains a View Model. The method passes parameter and parentViewModel objects to the dialog View Model.

See Also