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

PropogatePageState() public method

Propogates a page request down the hierarchy of docking elements.
public PropogatePageState ( DockingPropogatePageState state, string uniqueName ) : KryptonPage
state DockingPropogatePageState Request that should result in a page reference if found.
uniqueName string Unique name of the page the request relates to.
return ComponentFactory.Krypton.Navigator.KryptonPage
        public override KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            switch (state)
            {
                case DockingPropogatePageState.PageForUniqueName:
                    {
                        // If we have the page (stored via a proxy) then return the actual page reference (but not for a placeholder)
                        KryptonPage page = AutoHiddenGroupControl.Pages[uniqueName];
                        if ((page != null) && (page is KryptonAutoHiddenProxyPage))
                            return ((KryptonAutoHiddenProxyPage)page).Page;
                    }
                    break;
            }

            // Let base class perform standard processing
            return base.PropogatePageState(state, uniqueName);
        }