logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IUiComponentActions

    Interface defining lifecycle actions for a UI component.

    Namespace: Serenity.Ui.Application.Interfaces.Components
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public interface IUiComponentActions : IComponentActions

    Properties

    Awake

    Action to be called when the component is awakened.

    Declaration
    Action<IUiComponent> Awake { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    Action that takes an IUiComponent as a parameter and returns void.

    OnDestroy

    Action to be called when the component is destroyed.

    Declaration
    Action<IUiComponent> OnDestroy { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    Action that takes an IUiComponent as a parameter and returns void.

    OnDisable

    Action to be called when the component is disabled.

    Declaration
    Action<IUiComponent> OnDisable { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    Action that takes an IUiComponent as a parameter and returns void.

    OnEnable

    Action to be called when the component is enabled.

    Declaration
    Action<IUiComponent> OnEnable { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    Action that takes an IUiComponent as a parameter and returns void.

    Update

    Action to be called when the component is updated.

    Declaration
    Action<IUiComponent> Update { get; set; }
    Property Value
    Type Description
    Action<IUiComponent>

    Action that takes an IUiComponent as a parameter and returns void.

    In this article
    © 2026 Serenity. All Rights Reserved