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.
Unfortunately, activation email could not send to your email. Please try again.

Winforms Diagram - Detect Magnification/Zoom change

Thread ID:

Created:

Updated:

Platform:

Replies:

100431 Aug 5,2011 07:17 PM Aug 10,2011 11:53 PM Windows Forms 4
loading
Tags: Diagram
Howard Birkett
Asked On August 5, 2011 07:17 PM

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


Amsath Ali M [Syncfusion]
Replied On August 8, 2011 01:54 AM

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








Howard Birkett
Replied On August 8, 2011 11:29 AM

Thanks Amsath - Told you it was blind!


Howard Birkett
Replied On August 8, 2011 11:29 AM

Thanks Amsath - Told you it was blind!


Amsath Ali M [Syncfusion]
Replied On August 10, 2011 11:53 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;