Example #1
0
        public TabContent(BrowserView browserView)
        {
            this.browserView = browserView;
            this.browser     = browserView.Browser;

            this.browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
            {
                if (e.IsMainFrame)
                {
                    if (PropertyChangeEvent != null)
                    {
                        PropertyChangeEvent.Invoke("PageTitleChanged", null, browser.Title);
                    }
                }
            };

            this.browserContainer      = CreateBrowserContainer();
            this.browserContainer.Dock = DockStyle.Fill;


            this.toolBar          = CreateToolBar(browserView);
            this.toolBar.Dock     = DockStyle.Top;
            this.toolBar.AutoSize = true;

            this.ColumnCount = 1;
            this.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.Location    = new System.Drawing.Point(0, 0);
            this.RowCount    = 2;
            this.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));


            this.Controls.Add(toolBar, 0, 0);
            this.Controls.Add(browserContainer, 0, 1);
        }
Example #2
0
        private ToolPanel CreateToolBar(BrowserView browserView)
        {
            ToolPanel toolBar = new ToolPanel(browserView);

            return(toolBar);
        }