Back to Devexpress

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

corelibraries-devexpress-dot-mvvm-dot-dialogserviceextensions-dot-showdialog-x28-idialogservice-ienumerable-uicommand-string-string-object-x29.md

latest2.7 KB
Original Source

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

Shows a dialog window with the specified parameters.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

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

Declaration

csharp
public static UICommand ShowDialog(
    this IDialogService service,
    IEnumerable<UICommand> dialogCommands,
    string title,
    string documentType,
    object viewModel
)
vb
<ExtensionAttribute>
Public Shared Function ShowDialog(
    service As IDialogService,
    dialogCommands As IEnumerable(Of UICommand),
    title As String,
    documentType As String,
    viewModel As Object
) As UICommand

Parameters

NameTypeDescription
serviceIDialogService

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.

| | viewModel | Object |

The dialog’s View Model.

|

Returns

TypeDescription
UICommand

The clicked button’s UICommand value.

|

Remarks

Call this method to create a dialog View based on the documentType parameter. The method’s viewModel parameter allows you to assign a View Model to this View.

See Also

DialogServiceExtensions Class

DialogServiceExtensions Members

DevExpress.Mvvm Namespace