public MainWindow() { InitializeComponent(); var scripting = new ScriptingContext(); scripting.NotifyInvoked += (sender, args) => { this.Result.Text += args.Result; }; this.Host.ObjectForScripting = scripting; this.Host.Navigate("http://localhost:40414/Index.html"); }