Skip to main content
A newer version of this page is available. .
All docs
V22.2

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

Shows a dialog window with the specified parameters.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v22.2.dll

NuGet Package: DevExpress.Mvvm

Declaration

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

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.

viewModel Object

The dialog’s View Model.

Returns

Type Description
UICommand

The clicked button’s UICommand 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