[]
        
(Showing Draft Content)

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

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

Constructors

Name Description
C1ContextMenu()

Initializes a new instance of the C1ContextMenu class.

Fields

Name Description
PopupStyleProperty

Identifies the PopupStyle dependency property.

Properties

Name Description
IsOpen

Gets whether the menu is open.

Offset

Gets

PlacementTarget

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

PopupStyle

Gets or sets the style of the popup.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnClosed(EventArgs)

Raises the Closed event.

OnClosing(CancelEventArgs)

Raises the Closing event.

OnOpened(EventArgs)

Raises the Opened event.

OnOpening(CancelEventArgs)

Raises the Opening event.

Show(FrameworkElement, Point?)

Displays the context menu at the specified position.

Events

Name Description
Closed

Occurs when the C1ContextMenu closes.

Closing

Occurs when the C1ContextMenu is closing.

Opened

Occurs when the C1ContextMenu opens.

Opening

Occurs when the C1ContextMenu is opening.