skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContextMenuService

Provides methods for displaying a context menu for a document or tool window.

Inheritance
System.Object
RadDockObject
RadDockService
ContextMenuService
Inherited Members
RadDockService.OnDockManagerChanged()
RadDockService.OnEnabledChanged()
RadDockService.CanOperate()
RadDockService.DockManagerDesignMode
RadDockService.DockManager
RadDockService.Enabled
RadDockObject.Dispose()
RadDockObject.Dispose(Boolean)
RadDockObject.DisposeUnmanagedResources()
RadDockObject.OnPropertyChanging(String)
RadDockObject.OnPropertyChanged(String)
RadDockObject.ShouldSerializeProperty(String)
RadDockObject.Events
RadDockObject.Disposing
RadDockObject.IsDisposed
RadDockObject.Disposed
RadDockObject.PropertyChanging
RadDockObject.PropertyChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI.Docking
Assembly: Telerik.WinControls.RadDock.dll

Syntax

public class ContextMenuService : RadDockService, IDisposable, INotifyPropertyChanged, INotifyPropertyChangingEx

Constructors

ContextMenuService()

Declaration
public ContextMenuService()

Fields

ActivateWindow

Declaration
public const string ActivateWindow = "ActivateWindow"
Field Value
System.String

CloseAll

Declaration
public const string CloseAll = "CloseAll"
Field Value
System.String

CloseAllButPinned

Declaration
public const string CloseAllButPinned = "CloseAllButPinned"
Field Value
System.String

CloseAllButThis

Declaration
public const string CloseAllButThis = "CloseAllButThis"
Field Value
System.String

CloseWindow

Declaration
public const string CloseWindow = "CloseWindow"
Field Value
System.String

DockStateAutoHide

Declaration
public const string DockStateAutoHide = "AutoHide"
Field Value
System.String

DockStateDocked

Declaration
public const string DockStateDocked = "Docked"
Field Value
System.String

DockStateFloating

Declaration
public const string DockStateFloating = "Floating"
Field Value
System.String

DockStateHidden

Declaration
public const string DockStateHidden = "Hidden"
Field Value
System.String

DockStateTabbedDocument

Declaration
public const string DockStateTabbedDocument = "TabbedDocument"
Field Value
System.String

MoveToNextTabGroup

Declaration
public const string MoveToNextTabGroup = "MoveToNextTabGroup"
Field Value
System.String

MoveToPrevTabGroup

Declaration
public const string MoveToPrevTabGroup = "MoveToPrevTabGroup"
Field Value
System.String

NewHTabGroup

Declaration
public const string NewHTabGroup = "NewHTabGroup"
Field Value
System.String

NewVTabGroup

Declaration
public const string NewVTabGroup = "NewVTabGroup"
Field Value
System.String

Properties

AllowActiveWindowListContextMenu

Determines whether a context menu, listing all opened documents within a document strip, may be displayed.

Declaration
public bool AllowActiveWindowListContextMenu { get; set; }
Property Value
System.Boolean

AllowDocumentContextMenu

Determines whether context menus, associated with a document window may be displayed.

Declaration
public bool AllowDocumentContextMenu { get; set; }
Property Value
System.Boolean

AllowToolContextMenu

Determines whether context menus, associated with a tool window may be displayed.

Declaration
public bool AllowToolContextMenu { get; set; }
Property Value
System.Boolean

DisplayedMenu

Gets the currently displayed menu.

Declaration
public RadContextMenu DisplayedMenu { get; }
Property Value
RadContextMenu

IsMenuDisplayed

Determines whether a context menu is currently displayed.

Declaration
public bool IsMenuDisplayed { get; }
Property Value
System.Boolean

Methods

CanDisplayMenu(DockWindow)

Determines whether a context menu can be displayed for the specified window.

Declaration
protected virtual bool CanDisplayMenu(DockWindow window)
Parameters
DockWindow window

Returns
System.Boolean

DisplayActiveWindowList(DocumentTabStrip, Point)

Displays a context menu, listing all currently active documents within the specified document strip.

Declaration
public void DisplayActiveWindowList(DocumentTabStrip strip, Point screenPos)
Parameters
DocumentTabStrip strip

System.Drawing.Point screenPos

DisplayContextMenu(RadElement, DockWindow, Point)

Displays a context menu at the specified screen position, associated with the provided DockWindow instance.

Declaration
public void DisplayContextMenu(RadElement owner, DockWindow window, Point screenPos)
Parameters
RadElement owner

DockWindow window

System.Drawing.Point screenPos

DisplayContextMenu(DockWindow, Point)

Displays a context menu at the specified screen position, associated with the provided DockWindow instance.

Declaration
public void DisplayContextMenu(DockWindow window, Point screenPos)
Parameters
DockWindow window

System.Drawing.Point screenPos

DisplayMenuCore(List<RadMenuItemBase>, Point)

Displays the context menu at the specified screen position, using the provided list of items.

Declaration
protected virtual void DisplayMenuCore(List<RadMenuItemBase> items, Point screenPos)
Parameters
System.Collections.Generic.List<RadMenuItemBase> items

System.Drawing.Point screenPos

DisplayMenuCore(RadElement, List<RadMenuItemBase>, Point)

Displays the context menu at the specified screen position, using the provided list of items.

Declaration
protected virtual void DisplayMenuCore(RadElement menuOwner, List<RadMenuItemBase> items, Point screenPos)
Parameters
RadElement menuOwner

System.Collections.Generic.List<RadMenuItemBase> items

System.Drawing.Point screenPos

DisposeManagedResources()

Declaration
protected override void DisposeManagedResources()
Overrides
RadDockObject.DisposeManagedResources()

GetContextMenuItems(DockWindow)

Gets the menu items, associated with the specified DockWindow.

Declaration
public List<RadMenuItemBase> GetContextMenuItems(DockWindow window)
Parameters
DockWindow window

Returns
System.Collections.Generic.List<RadMenuItemBase>

GetContextMenuItems(DockWindow, Boolean)

Gets the menu items, associated with the specified DockWindow.

Declaration
public List<RadMenuItemBase> GetContextMenuItems(DockWindow window, bool defaultAction)
Parameters
DockWindow window

System.Boolean defaultAction

True to execute the default action, associated with each item, when an item is clicked.

Returns
System.Collections.Generic.List<RadMenuItemBase>

OnContextMenuItemClick(Object, EventArgs)

The entry point used to handle menu item clicks.

Declaration
protected virtual void OnContextMenuItemClick(object sender, EventArgs e)
Parameters
System.Object sender

System.EventArgs e

PerformMenuItemAction(DockWindow, RadMenuItemBase)

Performs the core action, depending on the clicked menu item.

Declaration
protected virtual void PerformMenuItemAction(DockWindow window, RadMenuItemBase menuItem)
Parameters
DockWindow window

RadMenuItemBase menuItem

Events

ContextMenuDisplaying

Notifies that a context menu is about to be displayed.

Declaration
public event ContextMenuDisplayingEventHandler ContextMenuDisplaying
Event Type
ContextMenuDisplayingEventHandler

ContextMenuItemClicked

Notifies that a context menu item has been clicked.

Declaration
public event ContextMenuItemClickEventHandler ContextMenuItemClicked
Event Type
ContextMenuItemClickEventHandler

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.