Enum MenuInstantiationMode
Controls when a menu's visual instance is created during the application lifecycle.
Namespace: Serenity.Menu.Domain.Enums
Assembly: Serenity.Menu.Domain.dll
Syntax
public enum MenuInstantiationMode
Remarks
PreloadOnStartup is value 0 so that existing serialized assets (which have no stored value for this field) deserialize to it, preserving the current eager-construction behavior. This enum is configuration-only; no runtime code branches on it yet.
Fields
| Name | Description |
|---|---|
| LazyOnFirstOpen | Reserved for a future implementation: defer the menu's visual construction until the menu is first shown. Not yet honored by any runtime code. |
| PreloadOnStartup | The menu's visual instance is built during Serenity startup. This is the default and matches the historical behavior in which every menu is eagerly created during installation. |