Click or drag to resize

NavigatorSinglePageNavigateAsyncT, TResult Method (FuncTResult, Task, Object)

Create a new ContentDialog or Flyout with the view defined by the view model, depending on the views definition, also passing a parameter to be used to construct the view model.

Namespace:  Cauldron.XAML.Navigation
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public Task NavigateAsync<T, TResult>(
	Func<TResult, Task> callback,
	params Object[] parameters
)
where T : class, Object, IDialogViewModel<TResult>

Parameters

callback
Type: SystemFuncTResult, Task
A delegate that is called after the popup has been closed
parameters
Type: SystemObject
The navigation parameter to pass to the target view model.

Type Parameters

T
The type of the viewmodel to construct
TResult
The result type of the dialog

Return Value

Type: Task

[Missing <returns> documentation for "M:Cauldron.XAML.Navigation.NavigatorSinglePage.NavigateAsync``2(System.Func{``1,System.Threading.Tasks.Task},System.Object[])"]

Implements

INavigatorNavigateAsyncT, TResult(FuncTResult, Task, Object)
.NET Framework Security
PermissionDescription
SystemNotSupportedExceptionThe is already an open ContentDialog. Multiple ContentDialogs are not supported
See Also