Click or drag to resize

ExplorerBrowserNavigationPending Event

Occurs before navigating to a folder. The operation can be cancelled using Cancel

Namespace:  Jam.Shell.WPF.Controls
Assembly:  ShellBrowserWPF (in ShellBrowserWPF.dll) Version: 1.3.1
Syntax
public event EventHandler<FolderChangingEventArgs> NavigationPending

Value

Type: SystemEventHandlerFolderChangingEventArgs
Examples
The following example shows how to cancel a navigation.
C#
private void ExplorerBrowser_NavigationPending(object sender, FolderChangingEventArgs e)
{
    // Cancel navigation when trying to open documents folder
    e.Cancel = e.FolderIdList.Equals(ItemIdList.GetForSpecialFolder(ShellFolder.Documents));
}
XAML
<shlbr:ExplorerBrowser NavigationPending="ExplorerBrowser_NavigationPending"/>
See Also