Class DialogNavigatorCore
Provides the framework-agnostic implementation of IDialogNavigator. Holds the framework-specific dialog object and delegates dialog orchestration back to the owning NavigatorCore.
Namespace: Singulink.UI.Navigation
Assembly: Singulink.UI.Navigation.dll
Syntax
public sealed class DialogNavigatorCore : IDialogNavigator, IDialogPresenter
Properties
| Name | Description |
|---|---|
| Dialog | Gets the framework-specific dialog object (e.g. a WinUI |
| RootNavigator | Gets the navigator that owns this dialog navigator. |
| TaskRunner | Gets the task runner for this navigator. This property can be accessed from any thread. |
Methods
| Name | Description |
|---|---|
| Close() | Closes the dialog this navigator is assigned to. Throws InvalidOperationException if the dialog is not currently the top showing dialog. |
| ShowDialogAsync(IDialogViewModel) | Shows a dialog with the specified view model and returns a task that completes when the dialog closes. |
| ShowDialogAsync<TResult>(IDialogViewModel<TResult>) | Shows a dialog with the specified view model and returns a task that completes with the dialog result when the dialog closes. |