Class OnActivateCompositeViewChildSignal
Dispatched to make a composite view activate one of its children — the mechanism by which a "predominant" navigation rail drives a "non-predominant" content area on the same screen.
Namespace: Serenity.Ui.Application.Events
Assembly: Serenity.Ui.Application.dll
Syntax
public class OnActivateCompositeViewChildSignal : EventDispatcherSignal
Remarks
Authoring is friction-free: put this signal on a navigation menu option's
OnSubmitSignal (the inspector already offers a searchable signal-type picker), fill in the
target composite id and child id, and submitting that option swaps the content — no custom code.
The composite view subscribes to this signal and ignores any whose CompositeViewId is
not its own.
Constructors
OnActivateCompositeViewChildSignal()
Parameterless constructor required for inspector authoring and serialization.
Declaration
public OnActivateCompositeViewChildSignal()
OnActivateCompositeViewChildSignal(string, string)
Creates the signal targeting a specific composite and child.
Declaration
public OnActivateCompositeViewChildSignal(string compositeViewId, string childViewId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | compositeViewId | The composite view id. |
| string | childViewId | The child view id to activate. |
Fields
ChildViewId
The id of the child view to make active inside that composite.
Declaration
public string ChildViewId
Field Value
| Type | Description |
|---|---|
| string |
CompositeViewId
The id of the composite view that owns the child to activate.
Declaration
public string CompositeViewId
Field Value
| Type | Description |
|---|---|
| string |
Methods
ToString()
Returns a readable representation for logging.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string describing the target composite and child. |