Skip to main content
All docs
V24.2

DialogServiceExtensions.ShowDialog(IDialogService, MessageButton, 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 MessageResult ShowDialog(
    this IDialogService service,
    MessageButton dialogButtons,
    string title,
    string documentType,
    object parameter,
    object parentViewModel
)

Parameters

Name Type Description
service IDialogService

The dialog service.

dialogButtons MessageButton

A set of buttons 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
MessageResult

The dialog’s result 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