logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CompositeViewActivateChild

    Activates a child within a composite view — the business operation behind a navigation rail swapping the content area. It resolves the target composite from the registry and tells it to activate the requested child; the composite owns the visibility mechanics.

    Inheritance
    object
    CompositeViewActivateChild
    Implements
    ISyncUseCase<CompositeViewActivateChildInput>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Application.UseCases
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public class CompositeViewActivateChild : ISyncUseCase<CompositeViewActivateChildInput>, IUseCase
    Remarks

    Keeping this as a use case (rather than wiring the signal straight to the view) puts the navigation decision in the business layer, so the rule "activating a child swaps the content" is expressed independently of Unity and is unit-testable against a fake ICompositeViewService.

    Constructors

    CompositeViewActivateChild(ICompositeViewService)

    Creates the use case over the composite registry.

    Declaration
    public CompositeViewActivateChild(ICompositeViewService compositeViewService)
    Parameters
    Type Name Description
    ICompositeViewService compositeViewService

    Registry used to resolve the target composite.

    Methods

    Execute(CompositeViewActivateChildInput)

    Resolves the composite and activates the requested child; no-op if unknown.

    Declaration
    public void Execute(CompositeViewActivateChildInput input)
    Parameters
    Type Name Description
    CompositeViewActivateChildInput input

    The composite id and child id to activate.

    Implements

    Serenity.Global.Application.Interfaces.ISyncUseCase<>
    Serenity.Global.Application.Interfaces.IUseCase
    In this article
    © 2026 Serenity. All Rights Reserved