Navigation control services
Navigation control offers methods to navigate and navigation control events.
The following are the methods:
GoBack: It goes back to the page previously visited.
GoForward : It goes a page forward in the navigation history.
Navigate: It goes to the indicated page.
Refresh: Reloads the current page.
StopLoading: Cancels any asynchronous navigation actions that haven't been processed yet.
Following are the Events:
Navigated: This occurs when the navigation to a particular page has ended.
Navigating : This occurs when the navigation to a particular page is about to begin.
To put this functionality into practice, we will add a button to the AdminView page. At the click of this button, we will be able to navigate to the last visited page.
Begin by adding a button definition in the XAML file.
We will establish, as we saw previously, a manager for the
Click
event.<Grid x:Name="LayoutRoot"> <Button x:Name="btnGoBack" Width="100" Height="25" Content...