[]
        
(Showing Draft Content)

C1.Blazor.Menu.C1ContextMenu

C1ContextMenu Class

The C1ContextMenu control represents a menu that can be displayed when the user clicks the right mouse button over a control.

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

Constructors

Name Description
C1ContextMenu()

Initializes a new instance of the C1ContextMenu class.

Fields

Name Description
PlacementTargetProperty

Identifies the PlacementTarget dependency property.

PlacementTargetQueryProperty

Identifies the PlacementTargetQuery dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

Properties

Name Description
Closed

Occurs when the C1ContextMenu closes.

Closing

Occurs when the C1ContextMenu is closing.

IsOpen

Gets whether the menu is open.

Opened

Occurs when the C1ContextMenu opens.

PlacementTarget

Gets the element to which the displayed menu is relative to.

PlacementTargetQuery

Css selector query to select an element to which the displayed menu is relative to.

PopupStyle

Gets or sets the style of the popup.

Methods

Name Description
Dispose(bool)
GetContentFragment()

Create control content RenderFragment.

OnAfterRender(bool)
OnAfterRenderAsync(bool)
OnClosed(EventArgs)

Raises the Closed event.

OnClosing(CancelEventArgs)

Raises the Closing event.

OnOpened(EventArgs)

Raises the Opened event.