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.

Hi,
 
I have a different behaviour of view.magnification when I update syncfusion dll version 7.1.0.30 to 12.1.0.43. I want to maintain the behaviour of version 7.1.0.30 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:

[C#]

  // 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.

Regards,

Ashok Kumar


Attachment: 116866_f0d830fe.zip


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

Thank you, it works great.
 
Regards,
 
  Blanca


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.

Regards,
Ashok Kumar.

Loader.
Live Chat Icon For mobile
Up arrow icon