How would one remove all the forward entries in a navigation service?
I tried this but it is crashing.
while (NavigationService.CanGoForward) NavigationService.RemoveBackEntry();
I know "RemoveBackEntry()" seems odd but there is no RemoveForwardEntry() method.
Any ideas?
Thanks, Kohan
Edit 1: Im a little closer, i can access the forward stack, and even output each item in there but i can not seem to work out how to remove the entries. None of the properties or methods on _frame.ForwardStack or j give any insight into how to remove these entries.
Window mainWindow = Application.Current.MainWindow;
Frame _frame = (Frame)mainWindow.FindName("mainFrame");
foreach (JournalEntry j in _frame.ForwardStack)
{
MessageBox.Show(j.Name);
}