UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Class DialogNavigatorCore

    Provides the framework-agnostic implementation of IDialogNavigator. Holds the framework-specific dialog object and delegates dialog orchestration back to the owning NavigatorCore.

    Inheritance
    object
    DialogNavigatorCore
    Implements
    IDialogNavigator
    IDialogPresenter
    Namespace: Singulink.UI.Navigation
    Assembly: Singulink.UI.Navigation.dll
    Syntax
    public sealed class DialogNavigatorCore : IDialogNavigator, IDialogPresenter

    Properties

    Name Description
    CanShowDialog

    Gets a value indicating whether this presenter can currently show a dialog. This is false for a navigator while any dialog is showing, for a dialog navigator whose dialog is not the top showing dialog, and for any presenter while showing dialogs is blocked (e.g. during navigation lifecycle methods that do not permit dialogs).

    Dialog

    Gets the framework-specific dialog object (e.g. a WinUI ContentDialog) associated with this dialog navigator.

    RootNavigator

    Gets the navigator that owns this dialog navigator.

    RootServices

    Gets the root service provider. This property can be accessed from any thread.

    TaskRunner

    Gets the task runner for this presenter. 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.

    CreateDialogViewModel<TViewModel>(params object?[])

    Creates a dialog view model with constructor injection, the same way the navigator creates routed view models. Explicit arguments are matched to constructor parameters by type (positionally among parameters of the same type); remaining parameters are resolved from child services registered by the dialogs this presenter is nested in and by the active route's view models (nearest first), then from RootServices, then from parameter default values. The view model's Navigator is available inside its constructor.

    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.

    Extension Methods

    DialogPresenterExtensions.ShowMessageDialogAsync(IDialogPresenter, MessageDialogOptions)
    DialogPresenterExtensions.ShowMessageDialogAsync(IDialogPresenter, string)
    DialogPresenterExtensions.ShowMessageDialogAsync(IDialogPresenter, string, IEnumerable<string>)
    DialogPresenterExtensions.ShowMessageDialogAsync(IDialogPresenter, string, string)
    DialogPresenterExtensions.ShowMessageDialogAsync(IDialogPresenter, string, string, IEnumerable<string>)
    © Singulink. All rights reserved.