Get Page Number in Epub Reader

Aug 4, 2014 at 6:56 AM
Edited Aug 4, 2014 at 7:04 AM

I am using this EPub Reader & I am looking for displaying page numbers means current page number & total page number of Book

In the class file (EPubViewer.cs) of this project library having fallowing code:
       /// <summary>
        /// Gets the current location.
        /// </summary>
        public int CurrentLocation
            get { return (int)this.GetValue(CurrentLocationProperty); }
            set { this.SetValue(CurrentLocationProperty, value); }

        /// <summary>
        /// Gets the furthest location.
        /// </summary>
        public int FurthestLocation
            get { return (int)this.GetValue(FurthestLocationProperty); }
            private set { this.SetValue(FurthestLocationProperty, value); }
But these elements are displaying Item element containers of total Book. I believe these are not belong to Page numbers.

Apart from this Displaying Current chapter page number is also ok for me, in other words no need of total book page numbers.

For this I got the total pagnumbers of current chapter from Render class
int chapterTotalPageno = iec.Pages.Count;
By using this I can get current chapter total page number.
int currentPageNo = 1;
This is for displaying current page number in current chapter; I am increasing & decreasing the value of currentPageNo when moving to next page & previous page respectively.

But in the case of using TOC item or click on inner link of reader I unable to count current page number.

Will you Please suggest me a way to get Page numbers for this reader or any way using Item element containers [ CurrentLocation & furthest location ].

Thanks in Advance