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:
public class ContextMenuDisplayingEventArgs : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsContextMenuDisplayingEventArgs
Inherited Members
Constructors
Initializes event data for a context menu associated with a dock window.
public ContextMenuDisplayingEventArgs(DockWindow window, List<RadMenuItemBase> items, Point displayPos)
The window whose context menu is being prepared.
itemsList<RadMenuItemBase>The menu items that can be modified before display.
displayPosPointThe initial display position in screen coordinates.
Initializes event data for the active-window list menu of a document strip.
public ContextMenuDisplayingEventArgs(DocumentTabStrip strip, List<RadMenuItemBase> items, Point displayPos)
The document strip whose active-window list is being displayed.
itemsList<RadMenuItemBase>The menu items that can be modified before display.
displayPosPointThe initial display position in screen coordinates.
Properties
Gets or sets the position (in screen coordinates) where the context menu will be displayed.
public Point DisplayPosition { get; set; }
Gets the DockWindow instance, associated with the event. Valid when the MenuType is DockWindow.
public DockWindow DockWindow { get; }
Gets the DocumentTabStrip instance, associated with the event. Valid when the MenuType is ActiveWindowList.
public DocumentTabStrip DocumentStrip { get; }
MenuItems
List<RadMenuItemBase>
Gets the List of menu items, which are about to be displayed.
public List<RadMenuItemBase> MenuItems { get; }
Gets the type of the context menu requested.
public ContextMenuType MenuType { get; }