public NavigationControl()
        {
            InitializeComponent();
            HtmlPage.RegisterScriptableObject("Page", this);

            pageLaunchers.Add("Main", (p) =>
            {
                var mp           = new MainPage();
                mp.textBox1.Text = (string)p[0];
                return(mp);
            });
            pageLaunchers.Add("Page 3", p =>
            {
                var p3 = new Page3();
                try
                {
                    p3.textBox1.Text = (string)p[0];
                    p3.textBox2.Text = (string)p[1];
                }
                catch
                {
                    //naughty swallow here
                }
                return(p3);
            });
            pageLaunchers.Add("AnotherOne", p =>
            {
                var page = new AnotherOne();
                return(page);
            });
        }
        public NavigationControl()
        {
            InitializeComponent();
            HtmlPage.RegisterScriptableObject("Page", this);

            pageLaunchers.Add("Main", (p) =>
            {
                var mp = new MainPage();
                mp.textBox1.Text = (string)p[0];
                return mp;
            });
            pageLaunchers.Add("Page 3", p =>
            {
                var p3 = new Page3();
                try
                {
                    p3.textBox1.Text = (string)p[0];
                    p3.textBox2.Text = (string)p[1];
                }
                catch
                {
                    //naughty swallow here
                }
                return p3;
            });
            pageLaunchers.Add("AnotherOne", p =>
            {
                var page = new AnotherOne();
                return page;
            });
        }