I have a frame in a WPF window. If I click a back button on a page I can easily make some checks and call Frame.GoBack(). However if I click backspace or a special back key on a keyboard or remote then the Frame intercepts this call before it bubbles up to the main window and thus my code doesn’t run.
Is there a way to stop a wpf frame from listening to NavigationCommands.BrowseBack?
I’ve managed to solve the problem by doubling up the CommandBindings. I now have the event being handled by the Window AND by the Frame. Adding the CommandBinding to the frame appears to have overridden whatever the frame was doing natively.