logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IMenuViewModelFactory

    Factory interface for creating menu view models with specified menu settings and UI options.

    Namespace: Serenity.Menu.Application.Interfaces.ViewModels.Factories
    Assembly: Serenity.Menu.Application.dll
    Syntax
    public interface IMenuViewModelFactory

    Methods

    CreateViewModel(IMenuSettingsDefinition, Dictionary<string, UiOption[]>)

    Creates a new menu view model instance with the specified menu settings and UI options.

    Declaration
    IViewModel CreateViewModel(IMenuSettingsDefinition menu, Dictionary<string, UiOption[]> uiOptions)
    Parameters
    Type Name Description
    IMenuSettingsDefinition menu

    The menu settings definition to be used by the view model.

    Dictionary<string, UiOption[]> uiOptions

    A dictionary of UI options categorized by option type.

    Returns
    Type Description
    IViewModel

    A new instance of a menu view model.

    In this article
    © 2026 Serenity. All Rights Reserved