Class
ExplorerControl

Control used for the navigation part of the RadOpenFileDialog, RadSaveFileDialog and RadOpenFolderDialog

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class ExplorerControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IViewModelChangedListener, IThemeChangeListener

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlExplorerControl

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIThemeChangeListenerIViewModelChangedListenerIWin32Window

Inherited Members UserControl.ValidateChildren()UserControl.ValidateChildren(ValidationConstraints)UserControl.OnCreateControl()UserControl.OnResize(EventArgs)UserControl.OnMouseDown(MouseEventArgs)UserControl.WndProc(ref Message)UserControl.AutoSizeUserControl.AutoSizeModeUserControl.AutoValidateUserControl.BorderStyleUserControl.CreateParamsUserControl.DefaultSizeUserControl.AutoSizeChangedUserControl.AutoValidateChangedUserControl.LoadContainerControl.AdjustFormScrollbars(bool)ContainerControl.OnAutoValidateChanged(EventArgs)ContainerControl.OnFontChanged(EventArgs)ContainerControl.OnLayout(LayoutEventArgs)ContainerControl.OnParentChanged(EventArgs)ContainerControl.PerformAutoScale()ContainerControl.ProcessDialogChar(char)ContainerControl.ProcessDialogKey(Keys)ContainerControl.ProcessCmdKey(ref Message, Keys)ContainerControl.ProcessMnemonic(char)ContainerControl.ProcessTabKey(bool)ContainerControl.Select(bool, bool)ContainerControl.UpdateDefaultButton()ContainerControl.Validate()ContainerControl.Validate(bool)ContainerControl.AutoScaleDimensionsContainerControl.AutoScaleFactorContainerControl.AutoScaleModeContainerControl.BindingContextContainerControl.CanEnableImeContainerControl.ActiveControlContainerControl.CurrentAutoScaleDimensionsContainerControl.ParentFormScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.GetScrollState(int)ScrollableControl.OnMouseWheel(MouseEventArgs)ScrollableControl.OnRightToLeftChanged(EventArgs)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.OnPaddingChanged(EventArgs)ScrollableControl.OnVisibleChanged(EventArgs)ScrollableControl.ScaleControl(SizeF, BoundsSpecified)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.GetPreferredSize(Size)Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsInputKey(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnAutoSizeChanged(EventArgs)Control.OnBackColorChanged(EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnBindingContextChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnEnabledChanged(EventArgs)Control.OnForeColorChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClick(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnLocationChanged(EventArgs)Control.OnHandleDestroyed(EventArgs)Control.OnDoubleClick(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnGotFocus(EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnKeyDown(KeyEventArgs)Control.OnKeyPress(KeyPressEventArgs)Control.OnKeyUp(KeyEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnLostFocus(EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnMouseCaptureChanged(EventArgs)Control.OnMouseEnter(EventArgs)Control.OnMouseLeave(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMouseHover(EventArgs)Control.OnMove(EventArgs)Control.OnPaint(PaintEventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.Refresh()Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetBoundsCore(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackColorControl.BackgroundImageControl.BackgroundImageLayoutControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CausesValidationControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontControl.FontHeightControl.ForeColorControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.MaximumSizeControl.MinimumSizeControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SiteControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TextControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.PaddingControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

ExplorerControl()

Initializes a new instance of the ExplorerControl class.

Declaration

cs-api-definition
public ExplorerControl()

Properties

ControlThemeClassName

Gets the theme class name used for styling the control.

Declaration

cs-api-definition
public string ControlThemeClassName { get; }

Property Value

string

Implements IThemeChangeListener.ControlThemeClassName

CurrentDirectoryPath

Gets or sets the path of the current directory in this ExplorerControl instance. Setting this property navigates to the specified directory.

Declaration

cs-api-definition
public string CurrentDirectoryPath { get; set; }

Property Value

string

CustomPlacesPaths

Gets or sets the paths to the custom places displayed in the navigation tree view. These provide quick access to frequently used directories.

Declaration

cs-api-definition
[Browsable(false)]
public IEnumerable<string> CustomPlacesPaths { get; set; }

Property Value

IEnumerable<string>

CustomPlacesTreeNode

Gets the custom places tree node that contains shortcuts to frequently used locations.

Declaration

cs-api-definition
public RadTreeNode CustomPlacesTreeNode { get; }

Property Value

RadTreeNode

EditingOptions

Gets or sets how the files and folders in the ExplorerControl can be edited. This controls operations like renaming, creating new folders, etc. Note that shell context menu and drag and drop operations are handled separately.

Declaration

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

Property Value

EditingOptions

ExpandToCurrentDirectory

Gets or sets a value indicating whether the main navigation pane automatically expands and brings into view the current directory. When true, the tree view will expand to show the current location.

Declaration

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

Property Value

bool

FileBrowserListView

Gets the file browser list view component that displays files and folders in the current directory.

Declaration

cs-api-definition
public FileBrowserListView FileBrowserListView { get; }

Property Value

FileBrowserListView

Filter

Gets or sets the filter string that describes the list of file extensions to filter by. This property has effect only when IsFolderBrowser is false.

Declaration

cs-api-definition
public string Filter { get; set; }

Property Value

string

FilterDescriptors

Gets the list of FileFilterDescriptor objects specified by the Filter property. This property has effect only when IsFolderBrowser is false.

Declaration

cs-api-definition
[Browsable(false)]
public IList<FileFilterDescriptor> FilterDescriptors { get; }

Property Value

IList<FileFilterDescriptor>

FilterIndex

Gets or sets the current filter index from the list of filter strings specified by the Filter property. This property has effect only when IsFolderBrowser is false.

Declaration

cs-api-definition
public int FilterIndex { get; set; }

Property Value

int

IsDragDropEnabled

Gets or sets a value indicating whether this ExplorerControl allows drag and drop operations. When enabled, users can drag files and folders between the tree view and list view.

Declaration

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

Property Value

bool

IsFolderBrowser

Gets or sets a value indicating whether this ExplorerControl instance is used for directory selection only or for both directories and files. When true, only directories can be selected.

Declaration

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

Property Value

bool

LayoutType

Gets or sets the current layout type of the main file browser pane, controlling how files and folders are displayed.

Declaration

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

Property Value

LayoutType

MainNavigationTreeView

Gets the main navigation tree view component that displays the directory structure.

Declaration

cs-api-definition
public FileBrowserTreeView MainNavigationTreeView { get; }

Property Value

FileBrowserTreeView

MainNavigationTreeViewProportionalWidth

Gets or sets the proportional size of MainNavigationTreeView according to the total width of the ExplorerControl. This property is only considered when SizeMode is set to Proportional. The value should be between 0 and 1, with the default being 0.25.

Declaration

cs-api-definition
public float MainNavigationTreeViewProportionalWidth { get; set; }

Property Value

float

MinFileBrowserListViewWidth

Gets or sets the minimum width for FileBrowserListView when the ExplorerControl is resized or the separator is dragged. The value is automatically scaled for DPI.

Declaration

cs-api-definition
public int MinFileBrowserListViewWidth { get; set; }

Property Value

int

MinNavigationTreeViewWidth

Gets or sets the minimum width for MainNavigationTreeView when the ExplorerControl is resized or the separator is dragged. The value is automatically scaled for DPI.

Declaration

cs-api-definition
public int MinNavigationTreeViewWidth { get; set; }

Property Value

int

MultiSelect

Gets or sets a value indicating whether multiple selection of files or folders is allowed. When enabled, users can select multiple items using Ctrl+Click or Shift+Click.

Declaration

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

Property Value

bool

PathNavigationBreadCrumb

Gets the breadcrumb navigation component that shows the current path.

Declaration

cs-api-definition
public FileDialogsBreadcrumb PathNavigationBreadCrumb { get; }

Property Value

FileDialogsBreadcrumb

SearchTextBox

Gets the search text box component used for file and folder searching.

Declaration

cs-api-definition
public FileDialogSearchPane SearchTextBox { get; }

Property Value

FileDialogSearchPane

SelectedFileName

Gets the full path of the currently selected file or directory. Returns an empty string if no item is selected.

Declaration

cs-api-definition
public string SelectedFileName { get; }

Property Value

string

SelectedFileNames

Gets the list of full paths of the currently selected files and/or folders. In single selection mode, this list contains at most one item.

Declaration

cs-api-definition
[Browsable(false)]
public IList<string> SelectedFileNames { get; }

Property Value

IList<string>

SelectedSafeFileNames

Gets the list of names (without full path) of the currently selected files and/or folders. In single selection mode, this list contains at most one item.

Declaration

cs-api-definition
[Browsable(false)]
public IList<string> SelectedSafeFileNames { get; }

Property Value

IList<string>

ShowHiddenFiles

Gets or sets a value indicating whether hidden files and folders should be visible in the explorer. When true, files and folders with the hidden attribute will be displayed.

Declaration

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

Property Value

bool

ShowNetworkLocations

Gets or sets a value indicating whether the dialog shows network computers in the navigation tree. When true, network locations will be accessible through the tree view.

Declaration

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

Property Value

bool

ShowSystemCustomPlaces

Gets or sets a value indicating whether the Quick Access/Favorites items from the Windows File Explorer will be shown as child nodes in the CustomPlacesTreeNode. When enabled, system custom places like Quick Access, Desktop, Downloads, etc. will be displayed.

Declaration

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

Property Value

bool

SizeMode

Gets or sets a value indicating how the MainNavigationTreeView width will be changed when the ExplorerControl is resized.

Declaration

cs-api-definition
public ExplorerControlSizeMode SizeMode { get; set; }

Property Value

ExplorerControlSizeMode

ThemeName

Declaration

cs-api-definition
public string ThemeName { get; set; }

Property Value

string

ViewModel

This property is not relevant for this class.

Declaration

cs-api-definition
[Browsable(false)]
public DialogViewModel ViewModel { get; }

Property Value

DialogViewModel

ViewModelChangedListeners

This property is not relevant for this class.

Declaration

cs-api-definition
[Browsable(false)]
public IList<IViewModelChangedListener> ViewModelChangedListeners { get; set; }

Property Value

IList<IViewModelChangedListener>

Methods

AddCustomPlacesNode(string, Image, IList<string>)

Adds a new custom places node to the MainNavigationTreeView. This node can be used to add organized shortcuts such as Favorites, Libraries, etc.

Declaration

cs-api-definition
public CustomPlacesFileBrowserTreeNode AddCustomPlacesNode(string nodeName, Image nodeImage, IList<string> paths)

Parameters

nodeName

string

The display name of the custom places node.

nodeImage

Image

The image to display for the custom places node.

paths

IList<string>

The list of directory paths that will be displayed as children of the newly created node.

Returns

CustomPlacesFileBrowserTreeNode

The created CustomPlacesFileBrowserTreeNode, or null if the parameters are invalid.

AddSystemCustomPlaces()

Adds system custom places from Windows File Explorer (Quick Access, Favorites) to the custom places node. This method uses COM interop to access Windows Shell functionality.

Declaration

cs-api-definition
protected virtual void AddSystemCustomPlaces()

CreateCustomPlacesNode()

Creates a custom places tree node with default settings.

Declaration

cs-api-definition
protected virtual CustomPlacesFileBrowserTreeNode CreateCustomPlacesNode()

Returns

CustomPlacesFileBrowserTreeNode

A new instance of CustomPlacesFileBrowserTreeNode.

CreateTreeNode(DirectoryBaseWrapper)

Creates a new tree node for the specified directory wrapper.

Declaration

cs-api-definition
public FileBrowserTreeNode CreateTreeNode(DirectoryBaseWrapper dir)

Parameters

dir

DirectoryBaseWrapper

The directory wrapper to create a tree node for.

Returns

FileBrowserTreeNode

A new FileBrowserTreeNode configured for the specified directory.

Dispose(bool)

Clean up any resources being used.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true if managed resources should be disposed; otherwise, false.

Overrides ContainerControl.Dispose(bool)

GetControlsHeightForCurrentTheme(string, out bool)

Gets the appropriate control height for the specified theme and determines if button fill and border should be hidden. Different themes require different control heights to maintain visual consistency.

Declaration

cs-api-definition
protected virtual int GetControlsHeightForCurrentTheme(string themeName, out bool hideButtonsFillAndBorder)

Parameters

themeName

string

The name of the theme to get control heights for.

hideButtonsFillAndBorder

bool

When this method returns, contains a value indicating whether button fill and border should be hidden for the specified theme.

Returns

int

The control height in pixels appropriate for the specified theme.

GetDirectoryInfoWrappersFromPaths(IEnumerable<string>)

Gets a list of DirectoryInfoWrapper objects from the specified file paths.

Declaration

cs-api-definition
public List<DirectoryInfoWrapper> GetDirectoryInfoWrappersFromPaths(IEnumerable<string> paths)

Parameters

paths

IEnumerable<string>

The collection of directory paths to convert.

Returns

List<DirectoryInfoWrapper>

A list of directory info wrappers for the specified paths.

GetLayoutTypeToIconConverter()

Declaration

cs-api-definition
protected virtual LayoutTypeToIconConverter GetLayoutTypeToIconConverter()

Returns

LayoutTypeToIconConverter

NotifyViewModelListeners(DialogViewModel)

Notifies all registered view model listeners of a view model change.

Declaration

cs-api-definition
protected void NotifyViewModelListeners(DialogViewModel viewModel)

Parameters

viewModel

DialogViewModel

The new view model to set.

OnCurrentDirectoryPathChanged()

Called when the current directory path property changes and navigates to the new directory.

Declaration

cs-api-definition
protected virtual void OnCurrentDirectoryPathChanged()

OnFileDirectoryChanged(Action)

Handles file or directory change notifications when used in standalone mode.

Declaration

cs-api-definition
public void OnFileDirectoryChanged(Action action)

Parameters

action

Action

The action to execute, typically on the UI thread.

OnFilterChanged()

Called when the filter property changes and processes the filtering accordingly.

Declaration

cs-api-definition
protected virtual void OnFilterChanged()

OnFilterIndexChanged()

Called when the filter index property changes and processes the filtering accordingly.

Declaration

cs-api-definition
protected virtual void OnFilterIndexChanged()

OnIsDragDropEnabledPropertyChanged()

Called when the drag and drop enabled property changes and updates the child controls accordingly.

Declaration

cs-api-definition
protected virtual void OnIsDragDropEnabledPropertyChanged()

OnLayoutChanged()

Called when the layout property changes and updates the view model accordingly.

Declaration

cs-api-definition
protected virtual void OnLayoutChanged()

OnLoad(EventArgs)

Called when the control is loaded and initializes the view model if necessary.

Declaration

cs-api-definition
protected override void OnLoad(EventArgs e)

Parameters

e

EventArgs

The event arguments.

Overrides UserControl.OnLoad(EventArgs)

OnMouseMove(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides Control.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides Control.OnMouseUp(MouseEventArgs)

OnMultiSelectChanged()

Called when the multi-select property changes and updates the view model accordingly.

Declaration

cs-api-definition
protected virtual void OnMultiSelectChanged()

OnShowHiddenFilesChanged()

Called when the show hidden files property changes and updates the view model accordingly.

Declaration

cs-api-definition
protected virtual void OnShowHiddenFilesChanged()

OnSizeChanged(EventArgs)

Declaration

cs-api-definition
protected override void OnSizeChanged(EventArgs e)

Parameters

e

EventArgs

Overrides Control.OnSizeChanged(EventArgs)

OnThemeChanged(ThemeChangedEventArgs)

Handles theme changes for this control and applies the new theme to the control tree. This method is called when the theme of the control or application changes.

Declaration

cs-api-definition
public void OnThemeChanged(ThemeChangedEventArgs e)

Parameters

e

ThemeChangedEventArgs

The theme changed event arguments containing the new theme name.

Implements IThemeChangeListener.OnThemeChanged(ThemeChangedEventArgs)

OnViewModelChanged(DialogViewModel)

Called when the view model changes and updates all related components.

Declaration

cs-api-definition
protected virtual void OnViewModelChanged(DialogViewModel viewModel)

Parameters

viewModel

DialogViewModel

The new view model.

SetViewModel(DialogViewModel)

Sets the view model for this control and all its child components.

Declaration

cs-api-definition
public void SetViewModel(DialogViewModel viewModel)

Parameters

viewModel

DialogViewModel

The view model to set.

Implements IViewModelChangedListener.SetViewModel(DialogViewModel)

SetupControlsForTheme()

Sets up controls for the current application theme by determining the theme name and applying appropriate styling. This method uses the application theme name or falls back to the control's theme name.

Declaration

cs-api-definition
protected virtual void SetupControlsForTheme()

SetupControlsForTheme(string)

Sets up controls for the specified theme by configuring control heights and visual properties based on the theme requirements. Different themes may require different control dimensions and styling.

Declaration

cs-api-definition
protected virtual void SetupControlsForTheme(string themeName)

Parameters

themeName

string

The name of the theme to apply to the controls.

SetupViewModelListeners()

Sets up the list of view model change listeners for the control's child components.

Declaration

cs-api-definition
protected void SetupViewModelListeners()

WireEvents()

Wires up event handlers for the control's child components.

Declaration

cs-api-definition
protected virtual void WireEvents()

Events

DirectoryNavigating

Occurs when the current folder is about to change.

Declaration

cs-api-definition
public event EventHandler<DirectoryNavigatingEventArgs> DirectoryNavigating

Event Value

EventHandler<DirectoryNavigatingEventArgs>

DirectoryRequesting

Occurs when the DirectoryInfo wrapper is about to be created.

Declaration

cs-api-definition
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting

Event Value

EventHandler<DirectoryRequestingEventArgs>

ExceptionRaised

Occurs when Exception during File (or Directory) creation / observation / modification is raised.

Declaration

cs-api-definition
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised

Event Value

EventHandler<FileBrowserExceptionRaisedEventArgs>

ShellContextMenuOpening

Occurs when context menu is about to open.

Declaration

cs-api-definition
public event EventHandler<ContextMenuOpeningEventArgs> ShellContextMenuOpening

Event Value

EventHandler<ContextMenuOpeningEventArgs>

In this article
DefinitionConstructorsExplorerControl()PropertiesControlThemeClassNameCurrentDirectoryPathCustomPlacesPathsCustomPlacesTreeNodeEditingOptionsExpandToCurrentDirectoryFileBrowserListViewFilterFilterDescriptorsFilterIndexIsDragDropEnabledIsFolderBrowserLayoutTypeMainNavigationTreeViewMainNavigationTreeViewProportionalWidthMinFileBrowserListViewWidthMinNavigationTreeViewWidthMultiSelectPathNavigationBreadCrumbSearchTextBoxSelectedFileNameSelectedFileNamesSelectedSafeFileNamesShowHiddenFilesShowNetworkLocationsShowSystemCustomPlacesSizeModeThemeNameViewModelViewModelChangedListenersMethodsAddCustomPlacesNode(string, Image, IList<string>)AddSystemCustomPlaces()CreateCustomPlacesNode()CreateTreeNode(DirectoryBaseWrapper)Dispose(bool)GetControlsHeightForCurrentTheme(string, out bool)GetDirectoryInfoWrappersFromPaths(IEnumerable<string>)GetLayoutTypeToIconConverter()NotifyViewModelListeners(DialogViewModel)OnCurrentDirectoryPathChanged()OnFileDirectoryChanged(Action)OnFilterChanged()OnFilterIndexChanged()OnIsDragDropEnabledPropertyChanged()OnLayoutChanged()OnLoad(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMultiSelectChanged()OnShowHiddenFilesChanged()OnSizeChanged(EventArgs)OnThemeChanged(ThemeChangedEventArgs)OnViewModelChanged(DialogViewModel)SetViewModel(DialogViewModel)SetupControlsForTheme()SetupControlsForTheme(string)SetupViewModelListeners()WireEvents()EventsDirectoryNavigatingDirectoryRequestingExceptionRaisedShellContextMenuOpening
Not finding the help you need?
Contact Support