New to Telerik UI for WinForms? Start a free 30-day trial

Provides the menu items, target, and screen position for a docking context-menu request. Canceling the event prevents the menu from being displayed.

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.RadDock.dll

Syntax:

C#
public class ContextMenuDisplayingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsContextMenuDisplayingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for a context menu associated with a dock window.

C#
public ContextMenuDisplayingEventArgs(DockWindow window, List<RadMenuItemBase> items, Point displayPos)
Parameters:windowDockWindow

The window whose context menu is being prepared.

itemsList<RadMenuItemBase>

The menu items that can be modified before display.

displayPosPoint

The initial display position in screen coordinates.

Initializes event data for the active-window list menu of a document strip.

C#
public ContextMenuDisplayingEventArgs(DocumentTabStrip strip, List<RadMenuItemBase> items, Point displayPos)
Parameters:stripDocumentTabStrip

The document strip whose active-window list is being displayed.

itemsList<RadMenuItemBase>

The menu items that can be modified before display.

displayPosPoint

The initial display position in screen coordinates.

Properties

Gets or sets the position (in screen coordinates) where the context menu will be displayed.

C#
public Point DisplayPosition { get; set; }

Gets the DockWindow instance, associated with the event. Valid when the MenuType is DockWindow.

C#
public DockWindow DockWindow { get; }

Gets the DocumentTabStrip instance, associated with the event. Valid when the MenuType is ActiveWindowList.

C#
public DocumentTabStrip DocumentStrip { get; }

Gets the List of menu items, which are about to be displayed.

C#
public List<RadMenuItemBase> MenuItems { get; }

Gets the type of the context menu requested.

C#
public ContextMenuType MenuType { get; }