ComponentFactory.Krypton.Docking.KryptonDockingSpace.PropogateAction C# (CSharp) Method

PropogateAction() public method

Propogates an action request down the hierarchy of docking elements.
public PropogateAction ( DockingPropogateAction action, KryptonPage pages ) : void
action DockingPropogateAction Action that is requested to be performed.
pages ComponentFactory.Krypton.Navigator.KryptonPage Array of pages the action relates to.
return void
        public override void PropogateAction(DockingPropogateAction action, KryptonPage[] pages)
        {
            switch (action)
            {
                case DockingPropogateAction.RestorePages:
                    foreach (KryptonPage page in pages)
                    {
                        // Swap pages that are placeholders for the actual pages
                        KryptonPage storePage = SpaceControl.PageForUniqueName(page.UniqueName);
                        if ((storePage != null) && (storePage is KryptonStorePage))
                        {
                            KryptonWorkspaceCell cell = SpaceControl.CellForPage(storePage);
                            cell.Pages.Insert(cell.Pages.IndexOf(storePage), page);
                        }
                    }
                    break;
            }

            // Let base class perform standard processing
            base.PropogateAction(action, pages);
        }

Same methods

KryptonDockingSpace::PropogateAction ( DockingPropogateAction action, string uniqueNames ) : void