[]
        
(Showing Draft Content)

C1.Blazor.Menu.C1MenuList

C1MenuList Class

List of menu items. This list can be set as the content of a dropdown to make a drop down list.

Namespace: C1.Blazor.Menu
Assembly: C1.Blazor.Menu.dll
Syntax
public class C1MenuList : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1MenuList()

Initializes a new instance of the C1MenuList class.

Fields

Name Description
ChildContentProperty

Identifies the ChildContent dependency property.

ChildItemsPathsProperty

Identifies the ChildItemsPaths dependency property.

DisplayMemberPathsProperty

Identifies the DisplayMemberPaths dependency property.

IsSubMenuOpenedStyleProperty

Identifies the IsSubMenuOpenedStyle dependency property.

ItemStyleProperty

Identifies the ItemStyle dependency property.

ItemTemplateProperty

Identifies the ItemTemplate dependency property.

OpenIconStyleProperty

Identifies the OpenIconStyle dependency property.

OpenIconTemplateProperty

Identifies the OpenIconTemplate dependency property.

OpenOnClickProperty

Identifies the OpenOnClick dependency property.

OpenedBackgroundProperty

Identifies the OpenedBackground dependency property.

OrientationProperty

Identifies the Orientation dependency property.

SeparatorStyleProperty

Identifies the SeparatorStyle dependency property.

SubMenuMaxHeightProperty

Identifies the SubMenuMaxHeight dependency property.

SubMenuStyleProperty

Identifies the SubMenuStyle dependency property.

Properties

Name Description
ChildContent
ChildItemsPaths
Converter
DisplayMemberPaths
IsSubMenuOpenedStyle

Gets or sets the style of the item which sub-menu is opened.

ItemStyle

Style of the items

ItemTemplate
ItemsSource

Gets or sets menu data source.

Level

Gets the nesting level.

MenuItems

Menu items collection.

OnItemSelected

This Callback will gets and sets by Blazor framework automatically for binding feature.

OpenIconStyle

Gets or sets the style of the open icon.

OpenIconTemplate

Gets or sets the template of the icon used to show this item has a sub-menu.

OpenOnClick

Gets or set wether opening sub-menu by clicking item.

OpenedBackground

Gets or sets the C1Color used in a menu item when this item is opened.

Orientation

Gets or sets the direction in which to render the Menu control.

ParentMenuItem

Gets the parent menu item.

SeparatorStyle

Gets or sets the style of the separator items.

SubMenuMaxHeight

Gets or sets a value that indicates the MaxHeight of the SubMenu.

SubMenuStyle

Gets or set the style of the sub-menus.

Methods

Name Description
BuildRenderTree(RenderTreeBuilder)
Close()

Forces closing all opened sub-menus.

Dispose(bool)
GetContentFragment()

Create control content RenderFragment.

GetMenuPanelFragment()

Create menu panel RenderFragment.

OnAfterRender(bool)
OnAutoCloseChanged()

Called when the property AutoClose changed.

OnAutoClosed(EventArgs)

Raises the AutoClosed event.

OnAutoClosing(MenuItemEventArgs)

Raises the AutoClosing event.

OnItemChecked(MenuItemEventArgs)

Raises the C1Menu.ItemChecked event.

OnItemClick(MenuItemEventArgs)

Raises the C1Menu.ItemClick event.

OnItemClosed(MenuItemEventArgs)

Raises the C1Menu.ItemClosed event.

OnItemClosing(CancelMenuItemEventArgs)

Raises the C1Menu.ItemClosing event.

OnItemOpened(MenuItemEventArgs)

Raises the C1Menu.ItemOpened event.

OnItemOpening(CancelMenuItemEventArgs)

Raises the C1Menu.ItemOpening event.

OnItemUnchecked(MenuItemEventArgs)

Raises the C1Menu.ItemUnchecked event.

Refresh()

Events

Name Description
AutoClosed

Occurs when the Menu is AutoClosed.

AutoClosing

Occurs when the Menu is AutoClosing.

ItemChecked

Occurs when a C1MenuItem is checked.

ItemClick

Occurs when a C1MenuItem is clicked.

ItemClosed

Occurs when a C1MenuItem is closed.

ItemClosing

Occurs when a C1MenuItem is closing.

ItemOpened

Occurs when a C1MenuItem is opened.

ItemOpening

Occurs when a C1MenuItem is opening.

ItemUnchecked

Occurs when a C1MenuItem is unchecked.