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
Public Event NavigationPending As EventHandler(Of FolderChangingEventArgs)
public:
event EventHandler<FolderChangingEventArgs^>^ NavigationPending {
void add (EventHandler<FolderChangingEventArgs^>^ value);
void remove (EventHandler<FolderChangingEventArgs^>^ value);
}
member NavigationPending : IEvent<EventHandler<FolderChangingEventArgs>,
FolderChangingEventArgs>
Value
Type:
SystemEventHandlerFolderChangingEventArgsExamples
The following example shows how to cancel a navigation.
private void ExplorerBrowser_NavigationPending(object sender, FolderChangingEventArgs e)
{
e.Cancel = e.FolderIdList.Equals(ItemIdList.GetForSpecialFolder(ShellFolder.Documents));
}
<shlbr:ExplorerBrowser NavigationPending="ExplorerBrowser_NavigationPending"/>
See Also