Search code examples
c#wpfawesomium

How to render a Awesomium webview on a Canvas (or any other UI)?


How can I render a WebView to a WPFCanvas in Awesomium 1.7? (using C#) In the previous version of Awesomium, I used to use a WebControl and add it as a child of a canvas. Now I want to use Isolated Sessions, which seems possible in v1.7, but I can't display it. Also, should I be using Webcontrol along with WebSessions and WebViews? I'm clueless as there are not many sample out there yet.

Any help would be appreciated!


Solution

  • You are able to use WebControls with isolated sessions, either programmatically by setting the WebControl.WebSession property (it's read-write on WebControls), or by using a WebSessionProvider in XAML. Read more here: http://wiki.awesomium.net/general-use/using-web-sessions.html