Пример #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);
                    }
                }
            };

            browserContainer = CreateBrowserContainer();
            toolBar          = CreateToolBar(browserView);

            container = new DockPanel();
            container.Children.Add(browserContainer);
            container.Margin = new Thickness(0, 30, 0, 0);
            this.Children.Add(toolBar);
            this.Children.Add(container);
        }
Пример #2
0
        private ToolPanel CreateToolBar(BrowserView browserView)
        {
            ToolPanel toolBar = new ToolPanel(browserView);

            return(toolBar);
        }