Class UnityCompositeViewService
Registry and coordinator for composite views. It owns the built composites, shows/hides them, and
listens for OnActivateCompositeViewChildSignal — the signal a navigation rail option
fires on submit — delegating to CompositeViewActivateChild so the matching composite
swaps its content. Mirrors the role the menu service plays for menus.
Inheritance
UnityCompositeViewService
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class UnityCompositeViewService : ICompositeViewService, IService, IFoundationSettings, IViewProvider
Constructors
UnityCompositeViewService(string, IEventDispatcherService, ILogService)
Creates the service and subscribes to the child-activation signal so navigation rails work with
no per-view wiring.
Declaration
public UnityCompositeViewService(string id, IEventDispatcherService eventDispatcherService, ILogService logService)
Parameters
Properties
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
Methods
ActivateChild(string, string)
Declaration
public void ActivateChild(string compositeViewId, string childViewId)
Parameters
| Type |
Name |
Description |
| string |
compositeViewId |
|
| string |
childViewId |
|
Declaration
public IViewBase GetActiveInputView()
Returns
GetView(string)
Declaration
public ICompositeView GetView(string compositeViewId)
Parameters
| Type |
Name |
Description |
| string |
compositeViewId |
|
Returns
GetViews()
Declaration
public IReadOnlyCollection<ICompositeView> GetViews()
Returns
HasView(string)
True when a composite with the given id is registered. Part of IViewProvider.
Declaration
public bool HasView(string viewId)
Parameters
| Type |
Name |
Description |
| string |
viewId |
The composite id to test.
|
Returns
| Type |
Description |
| bool |
True if a composite with that id exists.
|
HideView(string)
Declaration
public void HideView(string compositeViewId)
Parameters
| Type |
Name |
Description |
| string |
compositeViewId |
|
RegisterView(ICompositeView)
Declaration
public void RegisterView(ICompositeView view)
Parameters
ShowView(string)
Declaration
public void ShowView(string compositeViewId)
Parameters
| Type |
Name |
Description |
| string |
compositeViewId |
|
Implements