FileDirectoryListbox Class
Definition
Section titled “Definition”A listbox control that displays the file system.
public class FileDirectoryListbox : ListBox, IContainer, IList<ControlBase>, ICollection<ControlBase>, IEnumerable<ControlBase>, IEnumerableInheritance object → ControlBase → CompositeControl → ListBox
Implements IContainer, IList<ControlBase>, ICollection<ControlBase>, IEnumerable<ControlBase>, IEnumerable
Constructors
Section titled “Constructors”FileDirectoryListbox(int, int)
Section titled “FileDirectoryListbox(int, int)”Creates a new instance of the control and uses FileDirectoryListboxItem as the item theme.
public FileDirectoryListbox(int width, int height)Parameters
Section titled “Parameters”width int
The width of the control.
height int
The height of the control.
FileDirectoryListbox(int, int, ListBoxItemTheme)
Section titled “FileDirectoryListbox(int, int, ListBoxItemTheme)”Creates a new instance of the control with the specified item theme.
public FileDirectoryListbox(int width, int height, ListBoxItemTheme itemTheme)Parameters
Section titled “Parameters”width int
The width of the control.
height int
The height of the control.
itemTheme ListBoxItemTheme
The theme to use for the items.
Properties
Section titled “Properties”CurrentFolder
Section titled “CurrentFolder”The current folder displayed by the listbox.
public string? CurrentFolder { get; set; }FileFilter
Section titled “FileFilter”A . wildcard filesystem filter. Use
; to split multiple filters.
public string FileFilter { get; set; }OnlyRootAndSubDirs
Section titled “OnlyRootAndSubDirs”When true, only allows navigation from the root folder of the original value provided to CurrentFolder and below; otherwise false.
public bool OnlyRootAndSubDirs { get; set; }HideNonFilterFiles
Section titled “HideNonFilterFiles”When true, only displays files that match FileFilter; otherwise false to display all files.
public bool HideNonFilterFiles { get; set; }HighlightedExtentions
Section titled “HighlightedExtentions”A list of extensions of files to highlight, separated by a semicolon. The extension is just the name without any wildcards or periods, in lowercase. Example: txt;json;xml.
public string? HighlightedExtentions { get; set; }Methods
Section titled “Methods”OnItemAction()
Section titled “OnItemAction()”Navigates a directory if a directory is selected. Raises the SelectedItemExecuted event.
protected override void OnItemAction()