I have a documentviewer which i used in my wpf project to show xps document reports of having around 600 pages which is working great. But from user point of view i like to show the current page number as a tooltip on my scrollviewer while dragging the scroll stating the current page number in view. Somewhat like in a PDF file like this -
I was looking out for some ideas how to implement this. Just a current page number if not possible to show a thumbnail image would be good enough for me. Is there any in-built support in documentviewer for this functionality??
Thanks for any help..
I cannot find anything like
IsScrolling
so i would approach it like this:The popup should be displayed when the document is scrolled, then it should fade out after some time. This is done in the handler:
Edit: The event fires also on scrolls done via mouse-wheel etc. you could wrap everything in the handler in
if (Mouse.LeftButton == MouseButtonState.Pressed)
, not 100% accurate but who scrolls with the MouseWheel while left-clicking?