We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Winforms Diagram - Detect Magnification/Zoom change

How do I detect a change in the magnification of a diagram view, possibly caused by the overview control. I can't find an event to hook (but I could be blind)

Thanks
Howard


4 Replies

AA Amsath Ali M Syncfusion Team August 8, 2011 05:54 AM UTC

Hi Howard,

Thanks for your interest in Syncfusion products.

We suggest you to use the Diagram.Eventsink’s “MagnificationChanged” event to achieve your requirement.

Here is the Code snippet:
[C#]
this.diagram1.EventSink.MagnificationChanged += new ViewMagnificationEventHandler(EventSink_MagnificationChanged);

void EventSink_MagnificationChanged(ViewMagnificationEventArgs evtArgs)
{
MessageBox.Show("New Magnification value: " + evtArgs.NewMagnification +" "+" Old Magnification Value:"+evtArgs.OriginalMagnification);
}

For more information, please visit the below online documentation UG link:
http://help.syncfusion.com/ug_93/User%20Interface/Windows%20Forms/Diagram/Documents/44814magnificationevent.htm

For your convenience, we have modified the sample to achieve your reuirement.
Please try the below sample and let us know if you have any queries.
Forum Magnification Changed-1260415414.zip

Regards,
Amsath Ali. M









HB Howard Birkett August 8, 2011 03:29 PM UTC

Thanks Amsath - Told you it was blind!



HB Howard Birkett August 8, 2011 03:29 PM UTC

Thanks Amsath - Told you it was blind!



AA Amsath Ali M Syncfusion Team August 11, 2011 03:53 AM UTC

Hi Howard,

Thanks for the update.

We are happy to hear that the issue has been resolved.

Please let us know if you need any further assistance.

Regards,
Amsath Ali. M


Loader.
Live Chat Icon For mobile
Up arrow icon