示例#1
0
        /// <summary>
        /// Propogates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public virtual KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            // Search all child docking elements
            for (int i = 0; i < Count; i++)
            {
                // If the child knows the answer then return it now
                KryptonPage page = this[i].PropogatePageState(state, uniqueName);
                if (page != null)
                {
                    return(page);
                }
            }

            return(null);
        }
示例#2
0
        /// <summary>
        /// Propagates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public override KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            if (state == DockingPropogatePageState.PageForUniqueName)
            {
                // If we have the requested name page and it is not a placeholder then we have found it
                KryptonPage page = DockableNavigatorControl.Pages[uniqueName];
                if ((page != null) && page is not KryptonStorePage)
                {
                    return(page);
                }
            }

            // Let base class perform standard processing
            return(base.PropogatePageState(state, uniqueName));
        }
        /// <summary>
        /// Propagates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public override KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            if (state == 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 is KryptonAutoHiddenProxyPage proxyPage)
                {
                    return(proxyPage.Page);
                }
            }

            // Let base class perform standard processing
            return(base.PropogatePageState(state, uniqueName));
        }
示例#4
0
        /// <summary>
        /// Propogates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public override KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            switch (state)
            {
            case DockingPropogatePageState.PageForUniqueName:
            {
                // If we have the requested name page and it is not a placeholder then we have found it
                KryptonPage page = SpaceControl.PageForUniqueName(uniqueName);
                if ((page != null) && !(page is KryptonStorePage))
                {
                    return(page);
                }
            }
            break;
            }

            // Let base class perform standard processing
            return(base.PropogatePageState(state, uniqueName));
        }
示例#5
0
        /// <summary>
        /// Propogates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public virtual KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            // Search all child docking elements
            for (int i = 0; i < Count; i++)
            {
                // If the child knows the answer then return it now
                KryptonPage page = this[i].PropogatePageState(state, uniqueName);
                if (page != null)
                    return page;
            }

            return null;
        }
示例#6
0
        /// <summary>
        /// Propogates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        public override KryptonPage PropogatePageState(DockingPropogatePageState state, string uniqueName)
        {
            switch (state)
            {
                case DockingPropogatePageState.PageForUniqueName:
                    {
                        // If we have the requested name page and it is not a placeholder then we have found it
                        KryptonPage page = SpaceControl.PageForUniqueName(uniqueName);
                        if ((page != null) && !(page is KryptonStorePage))
                            return page;
                    }
                    break;
            }

            // Let base class perform standard processing
            return base.PropogatePageState(state, uniqueName);
        }
        /// <summary>
        /// Propogates a page request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in a page reference if found.</param>
        /// <param name="uniqueName">Unique name of the page the request relates to.</param>
        /// <returns>Reference to page that matches the request; otherwise null.</returns>
        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);
        }