In my WPF application I have a WebBrowser control. I have a grid containing files, and when I click on an item in the grid the file contents are retrieved from a database to be shown in the WebBrowser.
There are two types of file:
PDF: a temporary file is created, and the web broswer Navigate function is used to load the file.
HTML: The string is passed to the NavigateToString function.
If I view a PDF, then a HTML document, right clicking shows the context menu. I want to keep most things, such as print, but I want to stop the browser from letting the user go back a page, or even forwards.
Without editing the content to add Javascript etc, is there anything on the control I can do to stop the back/forward from happening?