Method ShowDialog
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
IWindowDialogServiceThe IWindowDialogService instance.
parameter
IBaseDialogParameterThe 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
IWindowDialogServiceThe IWindowDialogService instance.
parameter
IBaseDialogParameterThe 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
IWindowDialogServiceThe IWindowDialogService instance.
viewName
stringThe name of the view to be shown.
parameter
IBaseDialogParameterThe 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
IWindowDialogServiceThe IWindowDialogService instance.
viewName
stringThe name of the view to be shown.
parameter
IBaseDialogParameterThe dialog parameter.
callback
Action<IDialogResult>The callback action to be executed after the dialog is closed.