Sometime the web page loaded inside webview needs to use Winrt APIs. To do this, you can implement a winrt object that wraps around the WinRT APIs that the webpage needs to use send it to the webview using AddWebAllowedObject method. A new metadata attribute AllowForWeb should be specified above the class which object will be projected. This provides a security option to filter context which can be exposed to the webpage loaded inside webview.

Under the Output heading below, the displayed HTML has been loaded into the WebView control. Click the "Send Toast Notification" button to send a toast notification for the app