protected virtual void OnPaneAdding(LayoutEngineAddedEventArgs e)
 {
     if (PaneAdding != null)
         PaneAdding(this, e);
 }
 protected override void OnPaneAdded(LayoutEngineAddedEventArgs e)
 {
     base.OnPaneAdded(e);
     for (var i = 0; i < Children.Count; i++)
         Children[i].SplitterVisible = i != 0;
 }
 protected void OnPaneAddedInBay(LayoutEngineAddedEventArgs e)
 {
     if (PaneAddedInBay != null)
         PaneAddedInBay(this, e);
 }
        void pane_PaneAdded(object sender, LayoutEngineAddedEventArgs e)
        {
            var pane = e.DockPane;
            pane.PaneAdded += pane_PaneAdded;
            pane.Removed += pane_Removed;

            DockPanes.Add(e.DockPane);
            OnPaneAddedInBay(new LayoutEngineAddedEventArgs((DockNodeLayoutEngine)sender, e.DockPane, e.Align, e.InsertIndex));
        }