Click or drag to resize

ContextMenuProvider Constructor (ViewContextMenuManager, ViewLayoutStack, IPalette, PaletteMode, PaletteContextMenuRedirect, PaletteContextMenuItemState, PaletteContextMenuItemState, PaletteContextMenuItemStateHighlight, PaletteContextMenuItemStateChecked, PaletteRedirect, PaletteRedirectContextMenu, NeedPaintHandler, Boolean)

Initialize a new instance of the ContextMenuProvider class.

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#
public ContextMenuProvider(
	ViewContextMenuManager viewManager,
	ViewLayoutStack viewColumns,
	IPalette palette,
	PaletteMode paletteMode,
	PaletteContextMenuRedirect stateCommon,
	PaletteContextMenuItemState stateDisabled,
	PaletteContextMenuItemState stateNormal,
	PaletteContextMenuItemStateHighlight stateHighlight,
	PaletteContextMenuItemStateChecked stateChecked,
	PaletteRedirect redirector,
	PaletteRedirectContextMenu redirectorImages,
	NeedPaintHandler needPaintDelegate,
	bool enabled
)

Parameters

viewManager
Type: Internal.ComponentFactory.Krypton.ToolkitViewContextMenuManager
Reference to view manager.
viewColumns
Type: Internal.ComponentFactory.Krypton.ToolkitViewLayoutStack
Columns view element.
palette
Type: Internal.ComponentFactory.Krypton.ToolkitIPalette
Local palette setting to use initially.
paletteMode
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteMode
Palette mode setting to use initially.
stateCommon
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteContextMenuRedirect
State used to provide common palette values.
stateDisabled
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteContextMenuItemState
State used to provide disabled palette values.
stateNormal
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteContextMenuItemState
State used to provide normal palette values.
stateHighlight
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteContextMenuItemStateHighlight
State used to provide highlight palette values.
stateChecked
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteContextMenuItemStateChecked
State used to provide checked palette values.
redirector
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteRedirect
Redirector used for obtaining palette values.
redirectorImages
Type: Internal.ComponentFactory.Krypton.ToolkitPaletteRedirectContextMenu
Redirector used for obtaining images.
needPaintDelegate
Type: Internal.ComponentFactory.Krypton.ToolkitNeedPaintHandler
Delegate for requesting paint changes.
enabled
Type: SystemBoolean
Enabled state of the context menu.
See Also