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

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
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

Initializes a new instance of the ExplorerControl class.

C#
public ExplorerControl()

Properties

Gets the theme class name used for styling the control.

C#
public string ControlThemeClassName { get; }

Implements: IThemeChangeListener.ControlThemeClassName

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

C#
public string CurrentDirectoryPath { get; set; }

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

C#
[Browsable(false)]
public IEnumerable<string> CustomPlacesPaths { get; set; }

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

C#
public RadTreeNode CustomPlacesTreeNode { get; }

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.

C#
public EditingOptions EditingOptions { get; set; }

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.

C#
public bool ExpandToCurrentDirectory { get; set; }

FileBrowserListView

FileBrowserListView

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

C#
public FileBrowserListView FileBrowserListView { get; }

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.

C#
public string Filter { get; set; }

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

C#
[Browsable(false)]
public IList<FileFilterDescriptor> FilterDescriptors { get; }

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.

C#
public int FilterIndex { get; set; }

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.

C#
public bool IsDragDropEnabled { get; set; }

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.

C#
public bool IsFolderBrowser { get; set; }

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

C#
public LayoutType LayoutType { get; set; }

MainNavigationTreeView

FileBrowserTreeView

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

C#
public FileBrowserTreeView MainNavigationTreeView { get; }

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.

C#
public float MainNavigationTreeViewProportionalWidth { get; set; }

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.

C#
public int MinFileBrowserListViewWidth { get; set; }

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.

C#
public int MinNavigationTreeViewWidth { get; set; }

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.

C#
public bool MultiSelect { get; set; }

PathNavigationBreadCrumb

FileDialogsBreadcrumb

Gets the breadcrumb navigation component that shows the current path.

C#
public FileDialogsBreadcrumb PathNavigationBreadCrumb { get; }

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

C#
public FileDialogSearchPane SearchTextBox { get; }

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

C#
public string SelectedFileName { get; }

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.

C#
[Browsable(false)]
public IList<string> SelectedFileNames { get; }

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.

C#
[Browsable(false)]
public IList<string> SelectedSafeFileNames { get; }

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.

C#
public bool ShowHiddenFiles { get; set; }

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.

C#
public bool ShowNetworkLocations { get; set; }

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.

C#
public bool ShowSystemCustomPlaces { get; set; }

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

C#
public ExplorerControlSizeMode SizeMode { get; set; }
C#
public string ThemeName { get; set; }

This property is not relevant for this class.

C#
[Browsable(false)]
public DialogViewModel ViewModel { get; }

This property is not relevant for this class.

C#
[Browsable(false)]
public IList<IViewModelChangedListener> ViewModelChangedListeners { get; set; }

Methods

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

C#
public CustomPlacesFileBrowserTreeNode AddCustomPlacesNode(string nodeName, Image nodeImage, IList<string> paths)
Parameters:nodeNamestring

The display name of the custom places node.

nodeImageImage

The image to display for the custom places node.

pathsIList<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.

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.

C#
protected virtual void AddSystemCustomPlaces()

Creates a custom places tree node with default settings.

C#
protected virtual CustomPlacesFileBrowserTreeNode CreateCustomPlacesNode()
Returns:

CustomPlacesFileBrowserTreeNode

A new instance of CustomPlacesFileBrowserTreeNode.

Creates a new tree node for the specified directory wrapper.

C#
public FileBrowserTreeNode CreateTreeNode(DirectoryBaseWrapper dir)
Parameters:dirDirectoryBaseWrapper

The directory wrapper to create a tree node for.

Returns:

FileBrowserTreeNode

A new FileBrowserTreeNode configured for the specified directory.

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

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

Overrides: ContainerControl.Dispose(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.

C#
protected virtual int GetControlsHeightForCurrentTheme(string themeName, out bool hideButtonsFillAndBorder)
Parameters:themeNamestring

The name of the theme to get control heights for.

hideButtonsFillAndBorderbool

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.

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

C#
public List<DirectoryInfoWrapper> GetDirectoryInfoWrappersFromPaths(IEnumerable<string> paths)
Parameters:pathsIEnumerable<string>

The collection of directory paths to convert.

Returns:

List<DirectoryInfoWrapper>

A list of directory info wrappers for the specified paths.

C#
protected virtual LayoutTypeToIconConverter GetLayoutTypeToIconConverter()
Returns:

LayoutTypeToIconConverter

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

C#
protected void NotifyViewModelListeners(DialogViewModel viewModel)
Parameters:viewModelDialogViewModel

The new view model to set.

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

C#
protected virtual void OnCurrentDirectoryPathChanged()

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

C#
public void OnFileDirectoryChanged(Action action)
Parameters:actionAction

The action to execute, typically on the UI thread.

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

C#
protected virtual void OnFilterChanged()

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

C#
protected virtual void OnFilterIndexChanged()

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

C#
protected virtual void OnIsDragDropEnabledPropertyChanged()

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

C#
protected virtual void OnLayoutChanged()

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

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

The event arguments.

Overrides: UserControl.OnLoad(EventArgs)

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: Control.OnMouseMove(MouseEventArgs)

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: Control.OnMouseUp(MouseEventArgs)

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

C#
protected virtual void OnMultiSelectChanged()

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

C#
protected virtual void OnShowHiddenFilesChanged()
C#
protected override void OnSizeChanged(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnSizeChanged(EventArgs)

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.

C#
public void OnThemeChanged(ThemeChangedEventArgs e)
Parameters:eThemeChangedEventArgs

The theme changed event arguments containing the new theme name.

Implements: IThemeChangeListener.OnThemeChanged(ThemeChangedEventArgs)

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

C#
protected virtual void OnViewModelChanged(DialogViewModel viewModel)
Parameters:viewModelDialogViewModel

The new view model.

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.

C#
protected virtual void SetupControlsForTheme()

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.

C#
protected virtual void SetupControlsForTheme(string themeName)
Parameters:themeNamestring

The name of the theme to apply to the controls.

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

C#
protected void SetupViewModelListeners()

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

C#
public void SetViewModel(DialogViewModel viewModel)
Parameters:viewModelDialogViewModel

The view model to set.

Implements: IViewModelChangedListener.SetViewModel(DialogViewModel)

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

C#
protected virtual void WireEvents()

Events

Occurs when the current folder is about to change.

C#
public event EventHandler<DirectoryNavigatingEventArgs> DirectoryNavigating

Occurs when the DirectoryInfo wrapper is about to be created.

C#
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting

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

C#
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised

Occurs when context menu is about to open.

C#
public event EventHandler<ContextMenuOpeningEventArgs> ShellContextMenuOpening
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)SetupControlsForTheme()SetupControlsForTheme(string)SetupViewModelListeners()SetViewModel(DialogViewModel)WireEvents()EventsDirectoryNavigatingDirectoryRequestingExceptionRaisedShellContextMenuOpening
Not finding the help you need?
Contact Support