Back to Devexpress

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

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

latest2.6 KB
Original Source

DialogServiceExtensions.ShowDialog(IDialogService, IEnumerable<UICommand>, 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,
    object viewModel
)
vb
<ExtensionAttribute>
Public Shared Function ShowDialog(
    service As IDialogService,
    dialogCommands As IEnumerable(Of UICommand),
    title 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.

| | viewModel | Object |

The dialog’s View Model.

|

Returns

TypeDescription
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

DialogServiceExtensions Class

DialogServiceExtensions Members

DevExpress.Mvvm Namespace