Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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");
        }