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

Search Results for

    Interface IDismissibleDialogViewModel

    Represents a dialog view model that can handle dismiss requests. If a dialog view model does not implement this interface, dismiss requests will be ignored.

    Inherited Members
    IDialogViewModel.OnDialogShownAsync()
    Namespace: Singulink.UI.Navigation
    Assembly: Singulink.UI.Navigation.dll
    Syntax
    public interface IDismissibleDialogViewModel : IDialogViewModel
    Remarks

    A dismiss request is raised in the following situations:

    • A system back navigation is requested while the dialog is showing (e.g. via HandleSystemBackRequest()).
    • The close button is clicked (or activated by the escape key) and no command is wired to it. If a command is wired to the close button, the command is invoked instead and no dismiss request is raised.

    Note that the escape key only triggers a close button click when the close button is visible (i.e. CloseButtonText is set to a non-empty value). If the close button is hidden, escape key presses are ignored and will not raise a dismiss request, but system back requests will still raise one.

    Methods

    Name Description
    OnDismissRequestedAsync()

    Invoked when a dismiss request is raised while the dialog is showing. The implementation is responsible for closing the dialog (typically by calling this.Navigator.Close()) if the dismissal should proceed, or leaving the dialog open to veto the dismissal (optionally after prompting the user).

    © Singulink. All rights reserved.