Nevron Forum

Zoom controls

https://www.nevron.com/Forum/Topic8752.aspx

By Craig Browder - Friday, October 3, 2014

We are working with the nDrawingView. There is a method called "Fit". When we call this method programmatically, the zoom percentage is set to different amounts based on the number of shapes on the document, but they are all between 16 and 20%. When the UI is shown and I select fit from the zoom drop down menu on the toolbars, it zooms properly to 87%. Can you please tell me why the programmatic call to fit is not working properly?
By Nevron Support - Thursday, October 16, 2014

Hi,

To make the view fit the available area, you should set the ViewLayout property of the drawing view to Fit:

view.ViewLayout = ViewLayout.Fit;


This causes the drawing view to execute the Fit method you are asking about and then repaint itself and is the best way to change the view layout of the drawing view.
By Craig Browder - Monday, October 20, 2014

That works as we need it to. However, it disables the users ability to manually zoom in and out.