how to determine when navigationwindow back button is pressed and trap that event to something extra. I am thinking of managing the page state.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
The
NavigationService
provides a number of events you can subscribe to, if you want to control the navigation process:Add a handler to either
NavigationWindow.Navigating
orNavigationService.Navigating
. In your handler:The
NavigatingCancelEventArgs
contains all of the information about the navigation request you'll need to manage page state.