Table of Contents

Method ShowDialog

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

ShowDialog<T>(IWindowDialogService, IBaseDialogParameter)

Shows a dialog of type T with the specified dialog parameter.

public static void ShowDialog<T>(this IWindowDialogService dialogService, IBaseDialogParameter parameter)

Parameters

dialogService IWindowDialogService

The IWindowDialogService instance.

parameter IBaseDialogParameter

The dialog parameter.

Type Parameters

T

The type of the dialog.

ShowDialog<T>(IWindowDialogService, IBaseDialogParameter, Action<IDialogResult>)

Shows a dialog of type T with the specified dialog parameter and callback action.

public static void ShowDialog<T>(this IWindowDialogService dialogService, IBaseDialogParameter parameter, Action<IDialogResult> callback)

Parameters

dialogService IWindowDialogService

The IWindowDialogService instance.

parameter IBaseDialogParameter

The dialog parameter.

callback Action<IDialogResult>

The callback action to be executed after the dialog is closed.

Type Parameters

T

The type of the dialog.

ShowDialog(IWindowDialogService, string, IBaseDialogParameter)

Shows a dialog with the specified view name and dialog parameter.

public static void ShowDialog(this IWindowDialogService dialogService, string viewName, IBaseDialogParameter parameter)

Parameters

dialogService IWindowDialogService

The IWindowDialogService instance.

viewName string

The name of the view to be shown.

parameter IBaseDialogParameter

The dialog parameter.

ShowDialog(IWindowDialogService, string, IBaseDialogParameter, Action<IDialogResult>)

Shows a dialog with the specified view name, dialog parameter, and callback action.

public static void ShowDialog(this IWindowDialogService dialogService, string viewName, IBaseDialogParameter parameter, Action<IDialogResult> callback)

Parameters

dialogService IWindowDialogService

The IWindowDialogService instance.

viewName string

The name of the view to be shown.

parameter IBaseDialogParameter

The dialog parameter.

callback Action<IDialogResult>

The callback action to be executed after the dialog is closed.