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

View.Magnification. Different behaviour depend on version.

I have a different behaviour of view.magnification when I update syncfusion dll version to I want to maintain the behaviour of version because in the new version have to magnification and after this move the scroll.
This is the code in magnification combobox. I attach a document with the behaviour in both version.

string strMagValue = this.comboBoxBarItemMagnification.TextBoxValue;

int idxPctSign = strMagValue.IndexOf('%');

if (idxPctSign >= 0)


strMagValue = strMagValue.Remove(idxPctSign, 1);


int magVal = Convert.ToInt32(strMagValue);

this.diagram1.View.Magnification = magVal;

Attachment: MagnificationDifferent_47689de4.rar

3 Replies

AK Ashok Kumar V Syncfusion Team June 25, 2014 09:18 AM UTC

Hi Blanca,

Thanks for your interest in Syncfusion product.

We suggest you to set diagram.view.ZoomType to “TopLeft” to achieve your requirement. Please refer the below code snippet for your reference.

Here is the code snippet:


  // To set the TopLeft ZoomType

  diagram1.View.ZoomType = ZoomType.TopLeft;

  diagram1.View.Magnification = float.Parse(comboBox1.Text);

Please try the below attached sample and let me know if you have any concern.


Ashok Kumar

Attachment: 116866_f0d830fe.zip

BC Blanca Calderon June 26, 2014 06:40 AM UTC

Thank you, it works great.

AK Ashok Kumar V Syncfusion Team June 27, 2014 06:07 AM UTC

Hi Blanca,

Thanks for your update.

We are happy to hear that the solution worked perfectly.

Please let us know if you have any queries.

Ashok Kumar.

Live Chat Icon For mobile
Up arrow icon