3

I want to show the tooltip on my scrollviewer on page scrolling which shows the current page number in it which i asked here- Tooltip on scrollviewer in documentviewer.

I have implemented the answer after making some changes in the proposed solution but i face some problem. If i write this in my scroll_changed event if (Mouse.LeftButton == MouseButtonState.Pressed) it works perfectly fine but if i have a deferred scrolling enabled on my custom document viewer, the popup(tooltip) never appears..:(

Is there any workaround for it??

Community
  • 1
  • 1
Rohit Vats
  • 79,502
  • 12
  • 161
  • 185
  • Well, if you deferr scrolling you are not *really* scrolling, so the ScrollChanged event won't fire. – H.B. Apr 29 '11 at 18:43
  • Scroll changed won't fire while you are moving but once you are done with scrolling at that time, ScrollChanged event did get fired but at that time MouseButtonState is Released.. and hence no popup.. – Rohit Vats Apr 29 '11 at 18:51
  • Obviously that is the case, but you do not want to display it when scrolling is done anyway. – H.B. Apr 29 '11 at 18:54
  • Yeah, that can't be done with deferred scrolling while moving but i want to show the popup atleast at the time when i am done with dragging of scrollbar. – Rohit Vats Apr 29 '11 at 18:58
  • Then do only check for mousedown if deferred scrolling is on? – H.B. Apr 29 '11 at 19:07
  • You didn't get me. Let me put this way, ScrollChanged event fires in following cases - 1. During DocumentViewer intialization. 2. On window resizing containing DocumentViewer. 3. And in case of deffered scrolling, when i release the scrollbar. I just want to show the popup for my 3rd case only and not for the first two cases. – Rohit Vats Apr 30 '11 at 06:29
  • Any help would be appreciated.. – Rohit Vats May 01 '11 at 15:29

0 Answers0