[]
        
(Showing Draft Content)

C1.WinUI.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.

Implements
Namespace: C1.WinUI.Menu
Assembly: C1.WinUI.Menu.dll
Syntax
public class C1MenuList : C1HierarchicalPresenter, IDisposable

Constructors

Name Description
C1MenuList()

Initializes a new instance of the C1MenuList class.

Fields

Name Description
AutoCloseProperty

Identifies the AutoClose dependency property.

BorderAlignmentProperty

Identifies the BorderAlignment dependency property.

HighlightedBackgroundProperty

Identifies the HighlightedBackground dependency property.

ItemStyleProperty

Identifies the ItemStyle dependency property.

MenuOpenDelayProperty

Identifies the MenuOpenDelay dependency property.

OpenIconStyleProperty

Identifies the OpenIconStyle dependency property.

OpenIconTemplateProperty

Identifies the OpenIconTemplate dependency property.

OpenedBackgroundProperty

Identifies the OpenedBackground dependency property.

OrientationProperty

Identifies the Orientation dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

SeparatorStyleProperty

Identifies the SeparatorStyle dependency property.

SubMenuMaxHeightProperty

Identifies the SubMenuMaxHeight dependency property.

SubMenuStyleProperty

Identifies the SubMenuStyle dependency property.

Properties

Name Description
AutoClose

Gets or sets a value indicating if the menu will auto close when the user clicks outside of it.

BorderAlignment

Gets or sets the alignment of the border relative to the control bounds.

HighlightedBackground

Gets or sets the Microsoft.UI.Xaml.Media.Brush used to highlight the menu item.

ItemStyle

Style of the items

Level

Gets the nesting level.

MenuOpenDelay

Gets or Sets a value (in milliseconds) for the delay used when opening a submenu.

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.

OpenedBackground

Gets or sets the Microsoft.UI.Xaml.Media.Brush 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.

PopupStyle

Gets or sets the style of the popup.

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
ClearContainerForItemOverride(DependencyObject, object)
Close()

Forces closing all opened sub-menus.

Dispose(bool)
GetContainerForItemOverride()
GetPreferedLocations()

Gets a list of the preferred locations for the menu-items popup's content.

IsItemItsOwnContainerOverride(object)
OnApplyTemplate()
OnAutoCloseChanged()

Called when the property AutoClose changed.

OnAutoClosed(EventArgs)

Raises the AutoClosed event.

OnAutoClosing(CancelEventArgs)

Raises the AutoClosing event.

OnItemChecked(SourcedEventArgs)

Raises the C1Menu.ItemChecked event.

OnItemClick(SourcedEventArgs)

Raises the C1Menu.ItemClick event.

OnItemClosed(SourcedEventArgs)

Raises the C1Menu.ItemClosed event.

OnItemClosing(CancelSourceEventArgs)

Raises the C1Menu.ItemClosing event.

OnItemOpened(SourcedEventArgs)

Raises the C1Menu.ItemOpened event.

OnItemOpening(CancelSourceEventArgs)

Raises the C1Menu.ItemOpening event.

OnItemUnchecked(SourcedEventArgs)

Raises the C1Menu.ItemUnchecked event.

OnItemsChanged(object)
PrepareContainerForItemOverride(DependencyObject, object)

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.