Back to Devexpress

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

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

latest3.0 KB
Original Source

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

Shows a dialog window with specified parameters.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
UICommand ShowDialog(
    IEnumerable<UICommand> dialogCommands,
    string title,
    string documentType,
    object viewModel,
    object parameter,
    object parentViewModel
)
vb
<Browsable(False)>
Function ShowDialog(
    dialogCommands As IEnumerable(Of UICommand),
    title As String,
    documentType As String,
    viewModel As Object,
    parameter As Object,
    parentViewModel As Object
) As UICommand

Parameters

NameTypeDescription
dialogCommandsIEnumerable<UICommand>

A list of UICommand objects that are used to generate dialog buttons.

| | title | String |

A dialog window caption.

| | documentType | String |

A String value that specifies the name of a document type to be shown in the dialog window.

| | viewModel | Object |

An object that is the view model to be passed to the data context of the dialog view.

| | parameter | Object |

A parameter for passing data to the passed view model.

| | parentViewModel | Object |

The parent View model for building a parent-child view model relationship.

|

Returns

TypeDescription
UICommand

An object of the UICommand type that is the command corresponding to the button the end-user clicked.

|

See Also

IDialogService Interface

IDialogService Members

DevExpress.Mvvm Namespace