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

Search Results for

    Method OnDialogShown

    OnDialogShown<TViewModel>(Action<TViewModel>)

    Registers a script that runs whenever a dialog with the specified view model type is shown. The script typically sets state on the view model and closes it through its navigator. Scripts run asynchronously after the dialog has been shown, so the code that showed the dialog is already awaiting it. Dialogs without a script stay open so the test can drive them through TopDialog.

    Declaration
    public void OnDialogShown<TViewModel>(Action<TViewModel> script) where TViewModel : class, IDialogViewModel
    Parameters
    Type Name Description
    Action<TViewModel> script
    Type Parameters
    Name Description
    TViewModel

    OnDialogShown<TViewModel>(Func<TViewModel, Task>)

    Registers a script that runs whenever a dialog with the specified view model type is shown. The script typically sets state on the view model and closes it through its navigator. Scripts run asynchronously after the dialog has been shown, so the code that showed the dialog is already awaiting it. Dialogs without a script stay open so the test can drive them through TopDialog.

    Declaration
    public void OnDialogShown<TViewModel>(Func<TViewModel, Task> script) where TViewModel : class, IDialogViewModel
    Parameters
    Type Name Description
    Func<TViewModel, Task> script
    Type Parameters
    Name Description
    TViewModel
    © Singulink. All rights reserved.