Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramLite Zoom On Mouse Wheel (Read 4713 times)
integragreg
YaBB Newbies
*
Offline



Posts: 40
Location: Tennessee
Joined: Jan 26th, 2009
DiagramLite Zoom On Mouse Wheel
Sep 10th, 2009 at 4:11pm
Print Post  
We have a diagram whose parent is a ScrollViewer. We're changing the ZoomFactor whenever the user clicks on the diagram and scrolls the mouse wheel.

If the zoom factor is increased beyond 100%, the contents of the diagram continue to scale up, but the diagram itself does not. Hence, the diagram contents "bleed" off the diagram at the higher zoom factors.

We've tried scaling the bounds of the diagram, but that doesn't seem to fix anything.

Any help is appreciated.
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLite Zoom On Mouse Wheel
Reply #1 - Sep 11th, 2009 at 6:15am
Print Post  
I think this was a bug in an older version. It should work fine with the latest release.

Stoyan
  
Back to top
 
IP Logged
 
integragreg
YaBB Newbies
*
Offline



Posts: 40
Location: Tennessee
Joined: Jan 26th, 2009
Re: DiagramLite Zoom On Mouse Wheel
Reply #2 - Sep 11th, 2009 at 12:22pm
Print Post  
We're using version 1.1.0.21879. Is that the latest?
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLite Zoom On Mouse Wheel
Reply #3 - Sep 11th, 2009 at 12:59pm
Print Post  
It looks like new enough. Could you copy here the code for the MouseWheel and ButtonDown events?
  
Back to top
 
IP Logged
 
integragreg
YaBB Newbies
*
Offline



Posts: 40
Location: Tennessee
Joined: Jan 26th, 2009
Re: DiagramLite Zoom On Mouse Wheel
Reply #4 - Sep 11th, 2009 at 4:52pm
Print Post  
Stoyan,

The bug appears to be fixed in the beta assembly that you released to me this morning. But here is our code just in case:

Code
Select All
base.OnMouseWheel(e);



double expectedZoom = this.ZoomFactor + (this.ZoomFactor) / (e.Delta / 12.0);



if (expectedZoom <= maxZoom)



{








this.ZoomFactor += (this.ZoomFactor) / (e.Delta / 12.0);







}
 

  
Back to top
WWW  
IP Logged
 
wojto
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jan 20th, 2010
Re: DiagramLite Zoom On Mouse Wheel
Reply #5 - Feb 1st, 2010 at 3:14pm
Print Post  
Hello, I'm using mouse wheel scrolling for zooming the diagram in my application. It works under IE and Firefox, but the moment I turn windowless mode to "true" : <param name="windowless" value="True" /> the mouse scrolling is not working in Firefox anymore. Do you have any experience with that issue? I need the windowless mode for displaying some html content over silverlight.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLite Zoom On Mouse Wheel
Reply #6 - Feb 1st, 2010 at 3:36pm
Print Post  
Hi,

It seems this is officially not supported by Microsoft (see the note at http://msdn.microsoft.com/en-us/library/dd759034(VS.95).aspx). You might try catching the event from JavaScript and forwarding it to your Silverlight app by calling a [ScriptableMember] method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint