private void Window_Loaded(object sender, RoutedEventArgs e) { HtmlBridge htmlBridge = new HtmlBridge(); webBrowser.ObjectForScripting = htmlBridge; webBrowser.Navigate( new Uri("file:///" + Path.Combine(Path.GetDirectoryName(Application.ResourceAssembly.Location), "Html/index.html"))); }
//MainWindow objMainWindow; public Window1() { InitializeComponent(); htmlBridge = new HtmlBridge(); }