Windows Forms ContextMenuStrip for cascading browsing of folders and files.
publicclassFileBrowserContextMenuStrip:ContextMenuStrippublicFileBrowserContextMenuStrip()publicFileBrowserContextMenuStrip(IContainer? components)// components: container for disposing.componentsIContainer?
Form components for disposing.
// Menu items to show after the "Options" menu item.// Add menu items into AfterOptions to add custom menu item controls.publicICollection<ToolStripItem>AfterOptions{get;}// Title for the options dialogpublicstringOptionsFormTitle{get;set;}// Persistence identifier to make multiple instances unique.publicstringPersistenceId{get;set;}// If true, show file extensions in the menu items.[Bindable(true)]publicboolShowFileExtensions{get;set;}// If true, Show Shell Menu on right-click// Shell menu provides an explorer-like menu for file actions such as copy/paste etc.[Bindable(true)]publicboolShowShellMenu{get;set;}// Path to start browsing from.[Bindable(true)]publicstring?StartPath{get;set;}// Raised when the user clicks on a file MenuItem.publiceventEventHandler<FileInfo>? FileMenuItemClickedpubliceventPropertyChangedEventHandler? PropertyChanged