Search code examples
c#wpfawesomium

Awesomium WebControl load string


Is there a way to load a html as a string in webControl?

Something like:

webControl.Load("<!DOCTYPE html><html>...");

Like used in the normal wpf webControl:

webControl.NavigateToString("<!DOCTYPE html><html>...");

Solution

  • Actually now I found the answer in the tutorials for C++ (not on .net wpf) in Awesomium site.

    Here is my solution:

     var uri = new Uri("data:text/html,<!DOCTYPE html><html>...", UriKind.Absolute);
    
                webControl.Source = uri;