This sample relates to the WebView in Xamarin.Forms doc.
The app consists of two tabs. One tab demonstrates how to navigate within a
WebView, taking advantage of:
- CanGoForward -
trueif there is a page to navigate to,
- GoForward - Navigates forward.
- CanGoBack -
trueif there is a page to navigate back to,
- GoBack - Navigates back.
If there is no page to navigate back to, our sample returns to the link page. This is analogous to how many social apps will open links within a
WebView while navigating the user back home when they are done.
The other tab demonstrates how to listen for and respond to changes in navigation state. The sample demonstrates how to implement a loading indicator, taking advantage of:
- Navigating - event raised when the
WebViewbegins navigating to a new page.
- Navigated - event raised when the
WebViewhas completed navigating.
Nathan C. Castle