// Token: 0x06002CB8 RID: 11448 RVA: 0x000C9AB4 File Offset: 0x000C7CB4
        UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage)
        {
            UIElement uielement = null;

            rootFixedPage = null;
            if (char.IsDigit(elementID[0]))
            {
                int num = Convert.ToInt32(elementID, CultureInfo.InvariantCulture);
                num--;
                uielement     = this.GetFixedPage(num);
                rootFixedPage = this.GetFixedPage(num);
            }
            else
            {
                PageContentCollection pages = this.Pages;
                int i     = 0;
                int count = pages.Count;
                while (i < count)
                {
                    PageContent pageContent = pages[i];
                    if (pageContent.PageStream != null)
                    {
                        FixedPage fixedPage = this.GetFixedPage(i);
                        if (fixedPage != null)
                        {
                            uielement = ((IFixedNavigate)fixedPage).FindElementByID(elementID, out rootFixedPage);
                            if (uielement != null)
                            {
                                break;
                            }
                        }
                    }
                    else if (pageContent.ContainsID(elementID))
                    {
                        FixedPage fixedPage = this.GetFixedPage(i);
                        if (fixedPage != null)
                        {
                            uielement = ((IFixedNavigate)fixedPage).FindElementByID(elementID, out rootFixedPage);
                            if (uielement == null)
                            {
                                uielement = fixedPage;
                                break;
                            }
                            break;
                        }
                    }
                    i++;
                }
            }
            return(uielement);
        }
        // Token: 0x06002CCC RID: 11468 RVA: 0x000C9EE4 File Offset: 0x000C80E4
        internal int GetIndexOfPage(FixedPage p)
        {
            PageContentCollection pages = this.Pages;
            int i     = 0;
            int count = pages.Count;

            while (i < count)
            {
                if (pages[i].IsOwnerOf(p))
                {
                    return(i);
                }
                i++;
            }
            return(-1);
        }
        // Token: 0x06002CCF RID: 11471 RVA: 0x000C9F48 File Offset: 0x000C8148
        internal FixedPage SyncGetPage(int index, bool forceReload)
        {
            PageContentCollection pages = this.Pages;
            FixedPage             pageRoot;

            try
            {
                pageRoot = pages[index].GetPageRoot(forceReload);
            }
            catch (Exception ex)
            {
                if (ex is InvalidOperationException || ex is ApplicationException)
                {
                    ApplicationException ex2 = new ApplicationException(string.Format(CultureInfo.CurrentCulture, SR.Get("ExceptionInGetPage"), new object[]
                    {
                        index
                    }), ex);
                    throw ex2;
                }
                throw;
            }
            return(pageRoot);
        }