Skip to main content
All docs
V24.2

DialogServiceExtensions.ShowDialog(IDialogService, MessageButton, String, Object) Method

Shows a dialog window with the specified parameters.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

#Declaration

public static MessageResult ShowDialog(
    this IDialogService service,
    MessageButton dialogButtons,
    string title,
    object viewModel
)

#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.

viewModel Object

The dialog’s View Model.

#Returns

Type Description
MessageResult

The dialog’s result value.

#Remarks

Call this method if you use the ViewTemplate or ViewTemplateSelector property to define the dialog View. The method’s viewModel parameter allows you to assign a View Model to this View.

See Also