none
How to call a C# method of my Metro app from javascript code running in a webview control

    Question

  • Hi all,

    I want to implement the UI of my metro app using a WebView. The HTML/JS/CSS code will run inside it. The idea is that UI code does not know anything about its container (WebView).   Also, I want to code a bunch of C# methods as API for the UI in the same Metro app. So, when the UI needs to use native code (WinRT components),   UI code running inside webview should call my C# methods. Could someone give me an example about How call a C# method from javascript which is in a webview.

    Thanks,

    Hugo.

    Saturday, May 26, 2012 3:28 AM

Answers

All replies