Universal Windows App Communication between WebView and Application

Windows 10 introduces a new way to communicate between Application and Web Content.Now, you can call the new WebView.AddWebAllowedObject method to inject a WinRT object into a XAML WebView, and then call its functions from trusted JavaScript hosted in that WebView.This allows s

C# (327.4 KB)
5 Star
1,088 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • How do I do the same thing with C++ WinRT object?
    2 Posts | Last post October 14, 2016
    • I haven't been able to find a parallel of [AllowForWeb] in C++. I got rest of it in C++. In JS code the shared object is not available, it's undefined. Any ideas?
    • Figured it out. [Windows::Foundation::Metadata::AllowForWebAttribute]