ComponentFactory.Krypton.Docking.KryptonDockingAutoHiddenGroup.PropogatePageList C# (CSharp) Method

PropogatePageList() public method

Propogates a page list request down the hierarchy of docking elements.
public PropogatePageList ( DockingPropogatePageList state, KryptonPageCollection pages ) : void
state DockingPropogatePageList Request that should result in pages collection being modified.
pages KryptonPageCollection Pages collection for modification by the docking elements.
return void
        public override void PropogatePageList(DockingPropogatePageList state, KryptonPageCollection pages)
        {
            switch (state)
            {
                case DockingPropogatePageList.All:
                case DockingPropogatePageList.AutoHidden:
                    for (int i = AutoHiddenGroupControl.Pages.Count - 1; i >= 0; i--)
                    {
                        // Only add real pages and not just placeholders
                        KryptonPage page = AutoHiddenGroupControl.Pages[i];
                        if ((page != null) && !(page is KryptonStorePage))
                        {
                            // Remember the real page is inside a proxy!
                            KryptonAutoHiddenProxyPage proxyPage = (KryptonAutoHiddenProxyPage)page;
                            pages.Add(proxyPage.Page);
                        }
                    }
                    break;
            }
        }