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.
Inherited Members
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. |