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")));
        }
示例#2
0
        //MainWindow objMainWindow;
        public Window1()
        {
            InitializeComponent();

            htmlBridge = new HtmlBridge();
        }