Click or drag to resize

ExplorerBrowser Class

This component embeds the native windows ExplorerBrowser control into a WPF component.
Inheritance Hierarchy

Namespace:  Jam.Shell.WPF.Controls
Assembly:  ShellBrowserWPF (in ShellBrowserWPF.dll) Version: 1.3.1
Syntax
public class ExplorerBrowser : JamBaseHwndHost, 
	IShellControlConnectorTarget

The ExplorerBrowser type exposes the following members.

Constructors
  NameDescription
Public methodExplorerBrowser
Default constructor.
Top
Properties
  NameDescription
Public propertyAllColumns
Gets a list of all columns that are supported in the current view. These depend on what the control currently displays.
Public propertyAutoCheckSelect
Gets or sets a value indicating whether the control displays checkboxes that can be used to set the selection
Public propertyCheckedItems Obsolete.
Gets the checked items. The collection is non-recursive - if a folder is checked its content is not included.
Public propertyCheckMode
Gets or sets a value defining the current CheckMode.
Public propertyCode exampleColumns
Gets the ShellViewColumns the control currently displays.
Public propertyCode exampleContentFilter
A ShellItemFilter specifiying filter criteria for this instance.
Public propertyIsAvailable
Gets a value indicating whether this instance is loaded and available.
Public propertyItems
Contains the Items in the ExplorerBrowser. The collection is gathered upon first retreival. It is updated internally when the items change, i.e. by moving to another folder. The items returned may be sorted differently than the view.
Public propertyLocation
Gets or sets the current location.
Public propertyMainWindow
Gets the main window.
(Inherited from JamBaseHwndHost.)
Public propertyPath
Gets or sets the filesystem folder which contents should be displayed.
Public propertySelectedItems
Contains the selected item collection in the ExplorerBrowser. The collection is gathered upon first retreival. It is updated internally when the items change, i.e. by moving to another folder. The items returned may be sorted differently than the view.
Public propertyShellControlConnector
Gets or sets a ShellControlConnector.
Public propertyShowHeader
Gets or sets a value indicating if column headers should be shown.
Public propertySpecialFolder
Gets or sets the special folder to be displayed.
Public propertyThumbnailSize
Gets or sets the size of the icons that is applied when View is set to Thumbnail.
Public propertyVersion
The current version of ShellBrowser Components WPF.
Public propertyView
Allows to set the different view modes of the ExplorerBrowser control.
Public propertyViewFolderFlags
Get or set the FolderFlags that specify how the ListView displays its content. The flags can be or'ed together, ie. "FolderFlags.NoColumnHeader | FolderFlags.AbbreviatedNames" in the designer this is specified by a comma-separation.
Public propertyCode exampleVisiblePanes
Gets or sets the panes that are/should be visible.
Top
Methods
  NameDescription
Public methodBeginUpdate
Prevent that a FullRefresh is called until EndUpdate is called. Every call of BeginUpdate() increments an UpdateCounter variable.
Protected methodBuildWindowCore
When overridden in a derived class, creates the window to be hosted.
(Inherited from JamBaseHwndHost.)
Public methodCheckItem Obsolete.
Checks the item at the position passed by index.
Protected methodCreateWnd
Called after the Window has been created and the component has received a handle.
(Overrides JamBaseHwndHostCreateWnd.)
Public methodDeselectAll
Deselect all items in the listview.
Protected methodDestroyWindowCore
When overridden in a derived class, destroys the hosted window.
(Overrides JamBaseHwndHostDestroyWindowCore(HandleRef).)
Public methodEndUpdate
End the updating mode.
Public methodEnsureVisible
Scrolls to the item at the specified index.
Public methodFolderChanged
Changes the displayed folder in all connected controls.
Public methodFullRefresh
Reloads the component.
Public methodIndexOf
Searches for the index of the ItemIdList within the listview. This function has O(n) complexity, since it iterates through all items within the list.
Public methodInvokeCommandOnFolder(ShellCommand)
Executes a context menu command on the current folder.
Public methodInvokeCommandOnFolder(ShellContextMenuCommand)
Executes a context menu command on the current folder.
Public methodInvokeCommandOnSelected(ShellCommand)
Executes a context menu command on the selected items.
Public methodInvokeCommandOnSelected(ShellContextMenuCommand)
Executes a context menu command on the selected items.
Public methodIsUpdating
Query if this object is updating.
Protected methodOnBeforeFullRefresh
Issues the BeforeFullRefresh event.
Protected methodOnPropertyChanged
Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(DependencyPropertyChangedEventArgs).
(Overrides FrameworkElementOnPropertyChanged(DependencyPropertyChangedEventArgs).)
Protected methodOnVisualParentChanged
Invoked when the parent of this element in the visual tree is changed. Overrides OnVisualParentChanged(DependencyObject) . Finds a ScrollViewer in the visual tree that contains this instance.
(Inherited from JamBaseHwndHost.)
Protected methodOnWindowPositionChanged
Called when the hosted window's position changes.
(Inherited from JamBaseHwndHost.)
Public methodSelectedFileChange
Changes the displayed file in all connected controls.
Public methodSelectItem
Selects the item at the position passed by index.
Protected methodTabIntoCore
Sets focus on either the first tab stop or the last tab stop of the sink.
(Overrides HwndHostTabIntoCore(TraversalRequest).)
Protected methodTranslateAcceleratorCore
Processes keyboard input at the keydown message level.
(Overrides HwndHostTranslateAcceleratorCore(MSG, ModifierKeys).)
Protected methodWndProc
Calls the DefWindowProc with the given message. This is sometimes necessary when processing messages in subclasses and setting handled to true.
(Inherited from JamBaseHwndHost.)
Top
Events
  NameDescription
Public eventAddItem
This event occurs if a ListItem is to be added to the list. If the "CanAdd" property of the event args is set to false in an event handler, the item will not be added to the listview.
Public eventBeforeFullRefresh
Public eventDefaultAction
This event occurs if the user triggers the default command e.g. double clicked on an item.
Public eventNavigationComplete
Occurs when navigating to a folder has been completed successfully.
Public eventNavigationFailed
Occurs when navigating to a folder has failed.
Public eventCode exampleNavigationPending
Occurs before navigating to a folder. The operation can be cancelled using Cancel
Public eventSelectionChanged
This event occurs, if a selection changed in the listview
Public eventViewChanged
This event happens on view changes of the control.
Top
Fields
  NameDescription
Public fieldStatic memberLocationProperty
The DependencyProperty for ItemIdList.
Public fieldStatic memberViewProperty
The DependencyProperty for View.
Top
Remarks

This control displays the contents of a folder in a ListView like control. It is a true instance of the ExplorerBrowser (on Windows Vista and later) that is used by the Windows Explorer and therefore looks and behaves exactly like the Windows Explorer on the system it is running on.

There are some panes that can be shown or hidden by using the VisiblePanes property. The used view style can be changed using the View property. If Details is used columns are displayed. They can be edited by using Columns property.

See Also