New to Telerik UI for WinFormsStart a free 30-day trial

Event args for the ShellContextMenuOpening event.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ContextMenuOpeningEventArgs : EventArgs

Inheritance: objectEventArgsContextMenuOpeningEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the ContextMenuOpeningEventArgs class.

C#
public ContextMenuOpeningEventArgs(IList<FileSystemInfoWrapper> selectedFiles, bool isOpeningOnEmptySpace)
Parameters:selectedFilesIList<FileSystemInfoWrapper>

The files on which the context menu is triggered.

isOpeningOnEmptySpacebool

A value indicating whether the context menu is opening over an empty space.

Properties

Gets or sets a value indicating whether this context menu opening should be cancelled.

C#
public bool Cancel { get; set; }

Gets or sets a value indicating whether the short context menu is opening (shown on empty places on no selected files).

C#
public bool IsOpeningOnEmptySpace { get; set; }

Gets the list of files on which the context menu is being opened. If the list is empty, context menu is opened on empty space in the dialog or explorer control.

C#
public IList<FileSystemInfoWrapper> SelectedFiles { get; }

Gets or sets a value indicating all available options for the short context menu (shown on empty places on no selected files).

C#
public ShortContextMenuOptions ShortContextMenuOptions { get; set; }