Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scrollviewer & Zoomout.. event handlers near the border..? (Read 1878 times)
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Scrollviewer & Zoomout.. event handlers near the border..?
Feb 7th, 2013 at 5:44pm
Print Post  
We have diagram embedded inside the scrollviewer.

But when the user zooms out there is an area (outside nodes) which does not belong to the diagram though the background is colored the same. The eventual ctrl-mousewheel events do not even reach our diagram if the user tries to zoom back in while pointing near the border.

If he points onto nodes, the zooming works. Pointing on sides near the scrollbars, no zooming happens.

This is confusing for the user. Any way to solve it elegantly?

cheers
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scrollviewer & Zoomout.. event handlers near the border..?
Reply #1 - Feb 8th, 2013 at 7:40am
Print Post  
You can handle the ScrollViewer.MouseWheel event instead the diagram's one. That should let you detect the events in the margin area between the diagram and viewer too.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Re: Scrollviewer & Zoomout.. event handlers near the border..?
Reply #2 - Mar 1st, 2013 at 10:35am
Print Post  
thanks, i actually used PreviewMouseWheel as otherwise it was eaten away by scrollviewer for up-down.

cheers
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint