Class
ContextMenuOpeningEventArgs

Event args for the ShellContextMenuOpening event.

Definition

Namespace:Telerik.Windows.Controls.FileDialogs

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

cs-api-definition
public class ContextMenuOpeningEventArgs : EventArgs

Inheritance: objectEventArgsContextMenuOpeningEventArgs

Inherited Members EventArgs.Empty

Constructors

ContextMenuOpeningEventArgs(IList<FileSystemInfoWrapper>, bool)

Initializes a new instance of the ContextMenuOpeningEventArgs class.

Declaration

cs-api-definition
public ContextMenuOpeningEventArgs(IList<FileSystemInfoWrapper> selectedFiles, bool isOpeningOnEmptySpace = false)

Parameters

selectedFiles

IList<FileSystemInfoWrapper>

The files on which the context menu is triggered.

isOpeningOnEmptySpace

bool

True if context menu is opening in the empty area.

Properties

Cancel

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

Declaration

cs-api-definition
public bool Cancel { get; set; }

Property Value

bool

IsOpeningOnEmptySpace

Gets a value indicating whether this context menu is opening on empty space.

Declaration

cs-api-definition
public bool IsOpeningOnEmptySpace { get; }

Property Value

bool

SelectedFiles

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.

Declaration

cs-api-definition
public IList<FileSystemInfoWrapper> SelectedFiles { get; }

Property Value

IList<FileSystemInfoWrapper>

ShortContextMenuOptions

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

Declaration

cs-api-definition
public ShortContextMenuOptions ShortContextMenuOptions { get; set; }

Property Value

ShortContextMenuOptions