logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IComponentFactory

    Factory interface for creating UI components.

    Namespace: Serenity.Global.Application.Interfaces.Components.Factories
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IComponentFactory

    Methods

    CreateComponent<Element, Parameters, Actions>(Parameters, Actions)

    Creates a new UI component instance with the specified parameters and actions.

    Declaration
    Element CreateComponent<Element, Parameters, Actions>(Parameters parameters, Actions actions) where Element : IFoundationViewElement where Parameters : IComponentParameters where Actions : IComponentActions
    Parameters
    Type Name Description
    Parameters parameters

    Parameters for configuring the component

    Actions actions

    Actions for handling component events

    Returns
    Type Description
    Element

    Configured UI component instance

    Type Parameters
    Name Description
    Element

    Type of the UI component to create

    Parameters

    Type of the parameters for the component

    Actions

    Type of the actions for the component

    In this article
    © 2026 Serenity. All Rights Reserved