Hey. I am using a WPF WebBrowser control on my xaml page. I have html, jquery, js and css file in my html package. I need to load an html page in a web browser with the whole jquery library. How can I insert this file? I write the code as follows:
page.xaml.cs
void wb_Loaded(object sender, RoutedEventArgs e) { string htmlPath = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "keyboardWidget\\test.html"); string html = File.ReadAllText(htmlPath.ToString()); webBrowser.NavigateToString(html); }
this is page.xaml:
<WebBrowser x:Name="webBrowser"></WebBrowser>
I get an error like this.

Hi, can anyone suggest the best way to add a js or jquery library. if this is not possible in managing a wpf web browser, then what kind of control should I use.
source share