logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IModalViewFactory

    Factory interface for creating modal views.

    Namespace: Serenity.Modal.Application.Interfaces.Components.Factories
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public interface IModalViewFactory

    Methods

    CreateView(IModalServiceSettingsDefinition, IModalSettingsDefinition, Dictionary<string, UiOption[]>, object, ModalUseCases, IViewModel, IEventDispatcherService, List<IFoundationActionDefinition>, string, IUiThemeDefinition)

    Creates a new instance of a modal view with the specified parameters.

    Declaration
    IViewBase CreateView(IModalServiceSettingsDefinition modalServiceSettings, IModalSettingsDefinition modalSettings, Dictionary<string, UiOption[]> uiOptions, object canvas, ModalUseCases modalUseCases, IViewModel viewModel, IEventDispatcherService eventDispatcherService, List<IFoundationActionDefinition> modalActions, string audioServiceId, IUiThemeDefinition theme)
    Parameters
    Type Name Description
    IModalServiceSettingsDefinition modalServiceSettings

    The modal service settings definition.

    IModalSettingsDefinition modalSettings

    The modal settings definition.

    Dictionary<string, UiOption[]> uiOptions

    A dictionary of UI options for the modal.

    object canvas

    The canvas object where the modal will be displayed.

    ModalUseCases modalUseCases

    The use cases related to modal functionality.

    IViewModel viewModel

    The view model associated with the modal.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for handling events.

    List<IFoundationActionDefinition> modalActions

    A list of foundation action definitions for the modal.

    string audioServiceId

    The ID of the audio service to be used.

    IUiThemeDefinition theme

    The UI theme definition for styling the modal.

    Returns
    Type Description
    IViewBase

    A new instance of a modal view.

    In this article
    © 2026 Serenity. All Rights Reserved