Skip to content

Commit

Permalink
Merge pull request #2945 from telerik/new-kb-kb-filedialogs-clear-nav…
Browse files Browse the repository at this point in the history
…igation-history-afe1687263ea4ae8996d33646a8f9e76

Added new kb article kb-filedialogs-clear-navigation-history
  • Loading branch information
martinivanoff authored Aug 14, 2024
2 parents 9cf3797 + b81a4d4 commit d88909c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions knowledge-base/kb-filedialogs-clear-navigation-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: Clearing Navigation History in RadFileDialogs Explorer Control
description: Learn how to manipulate or clear the navigation history of the Explorer Control in RadFileDialogs for WPF.
type: how-to
page_title: How to Clear the Navigation History in RadFileDialogs Explorer Control
slug: kb-filedialogs-clear-navigation-history
tags: radfiledialogs, wpf, explorer control, navigation history, clear history
res_type: kb
ticketid: 1632150
---

## Environment

| Product | RadFileDialogs for WPF |
| --- | --- |
| Version | 2024.3.806 |

## Description

How to clear the navigation history of the RadFileDialogs' ExplorerControl.

## Solution

To clear the navigation history, you can subscribe to the `Loaded` event of the RadFileDialog or the ExplorerControl in order to access the `HistoryNavigationPaneControl`. Then, you can get the `DirectoryHistory` object and call its `Clear` method.

#### __[C#]__
{{region kb-filedialogs-clear-navigation-history-0}}
private HistoryNavigationPaneControl historyNavigationPane;

private void ExplorerControl_Loaded(object sender, RoutedEventArgs e)
{
this.historyNavigationPane = this.explorerControl.FindChildByType<HistoryNavigationPaneControl>();
}

public void ClearDirectoryHistory()
{
this.historyNavigationPane.DirectoryHistory.Clear();
}
{{endregion}}

0 comments on commit d88909c

Please sign in to comment.