Example #1
0
        public void Tch_AddPage()
        {
            ITabControlHostService host  = new TabControlHost(services, tabCtrl);
            IWindowFrame           frame = host.Add(pane, "Foo");

            Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text);
        }
Example #2
0
        public void Tch_AddPage()
        {
            ITabControlHostService host = new TabControlHost(services, tabCtrl);

            host.Add(pane.Object, "Foo");

            Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text);
        }
Example #3
0
        public void Tch_AttachToPage()
        {
            tabCtrl.TabPages.Add("Test");
            Assert.AreEqual(1, tabCtrl.TabPages.Count);
            ITabControlHostService host  = new TabControlHost(services, tabCtrl);
            IWindowFrame           frame = host.Attach(pane, tabCtrl.TabPages[0]);

            frame.Title = "Foo";

            Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text);
        }