Back to Devexpress

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

corelibraries-devexpress-dot-mvvm-dot-dialogserviceextensions-dot-showdialog-x28-devexpress-dot-mvvm-dot-idialogservice-devexpress-dot-mvvm-dot-messagebutton-system-dot-string-system-dot-string-system-dot-object-system-dot-object-x29.md

latest2.7 KB
Original Source

DialogServiceExtensions.ShowDialog(IDialogService, MessageButton, String, String, Object, 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 MessageResult ShowDialog(
    this IDialogService service,
    MessageButton dialogButtons,
    string title,
    string documentType,
    object parameter,
    object parentViewModel
)
vb
<ExtensionAttribute>
Public Shared Function ShowDialog(
    service As IDialogService,
    dialogButtons As MessageButton,
    title As String,
    documentType As String,
    parameter As Object,
    parentViewModel As Object
) As MessageResult

Parameters

NameTypeDescription
serviceIDialogService

The dialog service.

| | dialogButtons | MessageButton |

A set of buttons 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.

| | parameter | Object |

The parameter that allows you to pass data to the View Model.

| | parentViewModel | Object |

The dialog’s parent View Model.

|

Returns

TypeDescription
MessageResult

The dialog’s result value.

|

Remarks

Call this method if your dialog View already contains a View Model. The method passes parameter and parentViewModel objects to the dialog View Model.

See Also

DialogServiceExtensions Class

DialogServiceExtensions Members

DevExpress.Mvvm Namespace