Click or drag to resize

KryptonContextMenuCreateContextMenu Method

Create a new visual context menu for showing the defined items.

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
protected virtual VisualContextMenu CreateContextMenu(
	KryptonContextMenu kcm,
	IPalette palette,
	PaletteMode paletteMode,
	PaletteRedirect redirector,
	PaletteRedirectContextMenu redirectorImages,
	KryptonContextMenuCollection items,
	bool enabled,
	bool keyboardActivated
)

Parameters

kcm
Type: Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenu
Owning KryptonContextMenu instance.
palette
Type: Internal.ComponentFactory.Krypton.ToolkitIPalette
Drawing palette.
paletteMode
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteMode
Drawing palette mode.
redirector
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteRedirect
Redirector for sourcing base values.
redirectorImages
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteRedirectContextMenu
Redirector for sourcing base images.
items
Type: Internal.ComponentFactory.Krypton.ToolkitKryptonContextMenuCollection
Colletion of menu items.
enabled
Type: SystemBoolean
Enabled state of the menu.
keyboardActivated
Type: SystemBoolean
True is menu was keyboard initiated.

Return Value

Type: VisualContextMenu
VisualContextMenu reference.
See Also