WebView control and back button in Windows Universal Apps

Developers often face the issue related to back stack management when they use the WebView control in Windows Universal app. By default, the back button navigates to the previous XAML page and not the previous Web page( if the user already clicked any links in web page).  Here is the code snippet to solve this issue.

App demo video is given below, and the entire source code is here in GitHub.