Interface IMenuViewFactory
Factory interface for creating menu views with specified parameters.
Namespace: Serenity.Menu.Application.Interfaces.Components.Factories
Assembly: Serenity.Menu.Application.dll
Syntax
public interface IMenuViewFactory
Methods
CreateView(IMenuServiceSettingsDefinition, IMenuSettingsDefinition, Dictionary<string, UiOption[]>, object, MenuUseCases, IViewModel, IViewBrowserService, IEventDispatcherService, List<IFoundationActionDefinition>, string, IUiThemeDefinition)
Creates a new menu view instance with the specified parameters.
Declaration
IViewBase CreateView(IMenuServiceSettingsDefinition menuServiceSettings, IMenuSettingsDefinition menuSettings, Dictionary<string, UiOption[]> uiOptions, object canvas, MenuUseCases menuUseCases, IViewModel viewModel, IViewBrowserService viewBrowserService, IEventDispatcherService eventDispatcherService, List<IFoundationActionDefinition> menuActions, string audioServiceId, IUiThemeDefinition theme)
Parameters
| Type | Name | Description |
|---|---|---|
| IMenuServiceSettingsDefinition | menuServiceSettings | The menu service settings definition to be used by the view. |
| IMenuSettingsDefinition | menuSettings | The menu settings definition to be used by the view. |
| Dictionary<string, UiOption[]> | uiOptions | A dictionary of UI options categorized by option type. |
| object | canvas | The canvas object where the view will be rendered. |
| MenuUseCases | menuUseCases | The menu use cases to be utilized by the view. |
| IViewModel | viewModel | The view model instance to be associated with the view. |
| IViewBrowserService | viewBrowserService | The view browser service for managing view navigation. |
| IEventDispatcherService | eventDispatcherService | The event dispatcher service for handling events. |
| List<IFoundationActionDefinition> | menuActions | A list of foundation action definitions associated with the menu. |
| string | audioServiceId | The identifier for the audio service to be used by the view. |
| IUiThemeDefinition | theme | The UI theme definition to be applied to the view. |
Returns
| Type | Description |
|---|---|
| IViewBase | A new instance of a menu view. |