DialogServiceExtensions.ShowDialog(IDialogService, IEnumerable<UICommand>, String, String, Object, Object) Method
Shows a dialog window with the specified parameters.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static UICommand ShowDialog(
this IDialogService service,
IEnumerable<UICommand> dialogCommands,
string title,
string documentType,
object parameter,
object parentViewModel
)
Parameters
Name | Type | Description |
---|---|---|
service | IDialogService | The dialog service. |
dialogCommands | IEnumerable<UICommand> | A set of |
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
Type | Description |
---|---|
UICommand | The clicked button’s |
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